Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2004-0977: The make_oidjoins_check script in PostgreSQL 7.4.5 and earlier allows local users to overwrite files via a sym

22
Routine
LOW 2.1WATCHLISTUPGRADEMITIGATEMITIGATE

CVE-2004-0977 is a low-severity flaw (CVSS 2.1) affecting postgresql, mandrake linux, mandrake linux corporate server. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

The make_oidjoins_check script in PostgreSQL 7.4.5 and earlier allows local users to overwrite files via a symlink attack on temporary files.

Why this priority

  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score2.1 (Low)
EPSS exploit chance0.5% (top 61%)
CISA exploited listNo
Published2005-02-09
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: mandrakesoft · postgresql · redhat · trustix

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

postgresql postgresql UPGRADE
Affected: >= 7.3.0 and < 7.3.8 · >= 7.4.0 and < 7.4.6
Fixed in: 7.3.8, 7.4.6
Safe to downgrade to: a release before 7.3.0
1. Check installed version
apt-cache policy postgresql || rpm -q postgresql || postgresql --version
2. UPGRADE to 7.3.8 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade postgresql
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade postgresql
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 7.3.0 (Debian / Ubuntu)
apt-cache madison postgresql sudo apt install postgresql=<VERSION_BEFORE_7.3.0> sudo apt-mark hold postgresql
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list postgresql sudo dnf downgrade postgresql-<VERSION_BEFORE_7.3.0> sudo dnf versionlock add postgresql
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
mandrakesoft mandrake linux MITIGATE
Affected: 9.2 · 10.0 · 10.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.2
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
mandrakesoft mandrake linux corporate server MITIGATE
Affected: 2.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.1
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux MITIGATE
Affected: 3.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux desktop MITIGATE
Affected: 3.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
trustix secure linux MITIGATE
Affected: 2.0 · 2.1
Fixed in: no fixed release known
Safe to downgrade to: a release before 2.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2004-0977?

postgresql: upgrade to 7.3.8, 7.4.6; mandrake linux: mitigate or apply the listed mitigation; mandrake linux corporate server: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2004-0977 being exploited?

CVE-2004-0977 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2004-0977 affect?

CVE-2004-0977 affects postgresql, mandrake linux, mandrake linux corporate server. Severity is low (CVSS 2.1). The make_oidjoins_check script in PostgreSQL 7.4.5 and earlier allows local users to overwrite files via a symlink attack on temporary files.

How urgent is CVE-2004-0977?

Priority 22/100. On your watchlist

Software pages

PostgreSQL vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.