CVE-2005-1918 Path traversal in n/a

Low 2.6 Published Updated

User-assisted attackers can overwrite arbitrary files via crafted tar archives due to an incorrect optimization in the GNU tar patch.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2005-1918?

CVE-2005-1918 is a low-severity path traversal vulnerability in Redhat Enterprise Linux, published on 21 Feb 2006. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The original patch for a GNU tar directory traversal vulnerability (CVE-2002-0399) in Red Hat Enterprise Linux 3 and 2.1 uses an "incorrect optimization" that allows user-assisted attackers to overwrite arbitrary files via a crafted tar file, probably involving "/../" sequences with a leading "/".

Weakness: CWE-22

Which versions are affected by CVE-2005-1918?

It affects 4 products.

Linux distribution packages (8)
tar Red Hat:enterprise_linux:3::asAll versions0:1.13.25-14.RHEL3
tar-debuginfo Red Hat:enterprise_linux:3::asAll versions0:1.13.25-14.RHEL3
tar Red Hat:enterprise_linux:3::desktopAll versions0:1.13.25-14.RHEL3
tar-debuginfo Red Hat:enterprise_linux:3::desktopAll versions0:1.13.25-14.RHEL3
tar Red Hat:enterprise_linux:3::esAll versions0:1.13.25-14.RHEL3
tar-debuginfo Red Hat:enterprise_linux:3::esAll versions0:1.13.25-14.RHEL3
tar Red Hat:enterprise_linux:3::wsAll versions0:1.13.25-14.RHEL3
tar-debuginfo Red Hat:enterprise_linux:3::wsAll versions0:1.13.25-14.RHEL3

Products include Gnu Tar, Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Redhat Linux Advanced Workstation.

How do I fix CVE-2005-1918?

Apply the vendor's patch.

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

Is CVE-2005-1918 being exploited?

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

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2005-1918, GHSA-vf44-2j68-pjgj, RHSA-2006:0195.

Is CVE-2005-1918 in your software?

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

Check your SBOMs for free