CVE-2005-1918 Path traversal in n/a
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::as | All versions | 0:1.13.25-14.RHEL3 |
tar-debuginfo Red Hat:enterprise_linux:3::as | All versions | 0:1.13.25-14.RHEL3 |
tar Red Hat:enterprise_linux:3::desktop | All versions | 0:1.13.25-14.RHEL3 |
tar-debuginfo Red Hat:enterprise_linux:3::desktop | All versions | 0:1.13.25-14.RHEL3 |
tar Red Hat:enterprise_linux:3::es | All versions | 0:1.13.25-14.RHEL3 |
tar-debuginfo Red Hat:enterprise_linux:3::es | All versions | 0:1.13.25-14.RHEL3 |
tar Red Hat:enterprise_linux:3::ws | All versions | 0:1.13.25-14.RHEL3 |
tar-debuginfo Red Hat:enterprise_linux:3::ws | All versions | 0: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.
Other vulnerabilities in Redhat Enterprise Linux
Sources
Also known as DEBIAN-CVE-2005-1918, GHSA-vf44-2j68-pjgj, RHSA-2006:0195.