CVE-2007-4131
Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to…
Check your servers for CVE-2007-4131
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2007-4131 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 2.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 86.9% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2007-4131 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2007-4131RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2007-4131Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2007-4131
trivy image --scanners vuln IMAGE | grep CVE-2007-4131
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- 1021680 sunsolve.sun.com · vendor advisory
- http://support.avaya.com/elmodocs2/security/ASA-2007-383.htm support.avaya.com
- 26673 secunia.com · third party advisory
- 26822 secunia.com · third party advisory
- TA07-352A us-cert.gov · third party advisory
- 26655 secunia.com · third party advisory
- 27453 secunia.com · third party advisory
- FEDORA-2007-2673 redhat.com · vendor advisory
- 28136 secunia.com · third party advisory
- 26781 secunia.com · third party advisory
- DSA-1438 debian.org · vendor advisory
- 26590 secunia.com · third party advisory
17 more
- 27861 secunia.com · third party advisory
- https://issues.rpath.com/browse/RPL-1631 issues.rpath.com
- MDKSA-2007:173 mandriva.com · vendor advisory
- FreeBSD-SA-07:10 security.FreeBSD.org · vendor advisory
- 26984 secunia.com · third party advisory
- 2007-0026 trustix.org · vendor advisory
- APPLE-SA-2007-12-17 lists.apple.com · vendor advisory
- SUSE-SR:2007:018 novell.com · vendor advisory
- 26604 secunia.com · third party advisory
- USN-506-1 ubuntu.com · vendor advisory
- 28255 secunia.com · third party advisory
- 26573 secunia.com · third party advisory
- RHSA-2007:0860 redhat.com · vendor advisory
- http://docs.info.apple.com/article.html?artnum=307179 docs.info.apple.com
- 26603 secunia.com · third party advisory
- GLSA-200709-09 security.gentoo.org · vendor advisory
- 26674 secunia.com · third party advisory
Other references
- 1018599 securitytracker.com · vdb entry
- ADV-2007-4238 vupen.com · vdb entry
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=251921 bugzilla.redhat.com
- oval:org.mitre.oval:def:10420 oval.cisecurity.org · vdb entry, signature
- ADV-2007-2958 vupen.com · vdb entry
- 20070827 FLEA-2007-0049-1 tar securityfocus.com · mailing list
- oval:org.mitre.oval:def:7779 oval.cisecurity.org · vdb entry, signature
- 25417 securityfocus.com · vdb entry
- 20070825 rPSA-2007-0172-1 tar securityfocus.com · mailing list
Source: the record CVE-2007-4131 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse