CVE-2004-1901 Path traversal in n/a

Medium 5.5 Published Updated

Local attackers can overwrite arbitrary files via hard link attacks on lockfiles, potentially leading to privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2004-1901?

CVE-2004-1901 is a medium-severity path traversal vulnerability in Gentoo Linux, published on 10 May 2005. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Portage before 2.0.50-r3 allows local users to overwrite arbitrary files via a hard link attack on the lockfiles.

Weakness: CWE-59

Which versions are affected by CVE-2004-1901?

It affects 2 products.

Products include Gentoo Linux, Gentoo Portage.

How do I fix CVE-2004-1901?

No fix has been published for CVE-2004-1901 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2004-1901 being exploited?

There is no known exploitation of CVE-2004-1901 in the wild and no public exploit code.

All Gentoo Linux vulnerabilities

Sources

Also known as GHSA-m82x-j38m-84qv.

Is CVE-2004-1901 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free