CVE-2007-4131 Path traversal in n/a

Medium 6.8 Published Updated

Attackers can overwrite arbitrary files via crafted TAR archives with directory traversal sequences, requiring user interaction to extract the archive.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2007-4131?

CVE-2007-4131 is a medium-severity path traversal vulnerability in n/a, published on 25 Aug 2007. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwrite arbitrary files via certain //.. (slash slash dot dot) sequences in directory symlinks in a TAR archive.

Which versions are affected by CVE-2007-4131?

It affects 1 product.

Linux distribution packages (12)
tar Red Hat:enterprise_linux:4::asAll versions0:1.14-12.5.1.RHEL4
tar-debuginfo Red Hat:enterprise_linux:4::asAll versions0:1.14-12.5.1.RHEL4
tar Red Hat:enterprise_linux:4::desktopAll versions0:1.14-12.5.1.RHEL4
tar-debuginfo Red Hat:enterprise_linux:4::desktopAll versions0:1.14-12.5.1.RHEL4
tar Red Hat:enterprise_linux:4::esAll versions0:1.14-12.5.1.RHEL4
tar-debuginfo Red Hat:enterprise_linux:4::esAll versions0:1.14-12.5.1.RHEL4
tar Red Hat:enterprise_linux:4::wsAll versions0:1.14-12.5.1.RHEL4
tar-debuginfo Red Hat:enterprise_linux:4::wsAll versions0:1.14-12.5.1.RHEL4
tar Red Hat:enterprise_linux:5::clientAll versions2:1.15.1-23.0.1.el5
tar-debuginfo Red Hat:enterprise_linux:5::clientAll versions2:1.15.1-23.0.1.el5
tar Red Hat:enterprise_linux:5::serverAll versions2:1.15.1-23.0.1.el5
tar-debuginfo Red Hat:enterprise_linux:5::serverAll versions2:1.15.1-23.0.1.el5

Products include Gnu Tar.

How do I fix CVE-2007-4131?

Upgrade to a fixed version.

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

Is CVE-2007-4131 being exploited?

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

Sources

Also known as DEBIAN-CVE-2007-4131, GHSA-43w6-q9mv-9cwf, RHSA-2007:0860.

Is CVE-2007-4131 in your software?

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

Check your SBOMs for free