Skip to content
Noroxi
CVE-2007-4131· NVD / CVE Program· CNA redhat

Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwr

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.

MediumCVSS 6.8 · v2.0—No exploit Fix available
Published
Aug 24, 2007
Updated
Jun 16, 2026
EPSS
2.7% · 86th percentile
CWE
—
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

28

Monitor

Low priority for now.

CVSS
27 / 40 · 6.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 2.7%

Affected systems

VendorProduct
gnutar
redhatenterprise linux
redhatenterprise linux desktop
rpathrpath linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • gnu tar1.13
  • gnu tar1.13.11
  • gnu tar1.13.14
  • gnu tar1.13.16
  • gnu tar1.13.17
  • gnu tar1.13.18
  • gnu tar1.13.19
  • gnu tar1.13.25
  • gnu tar1.13.5
  • gnu tar1.14
  • gnu tar1.14.90
  • gnu tar1.15
  • gnu tar1.15.1
  • gnu tar1.15.90
  • gnu tar1.15.91
  • gnu tar1.16

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12tarbefore 1.18-21.18-2
Debian:3.1tarbefore 1.14-2.41.14-2.4
Debian:4.0tarbefore 1.16-2etch11.16-2etch1
Red Hat:enterprise_linux:4::astarbefore 0:1.14-12.5.1.RHEL40:1.14-12.5.1.RHEL4
Red Hat:enterprise_linux:4::astar-debuginfobefore 0:1.14-12.5.1.RHEL40:1.14-12.5.1.RHEL4
Red Hat:enterprise_linux:5::clienttarbefore 2:1.15.1-23.0.1.el52:1.15.1-23.0.1.el5
Red Hat:enterprise_linux:5::clienttar-debuginfobefore 2:1.15.1-23.0.1.el52:1.15.1-23.0.1.el5

Same product

gnu: all records

Other highest-scoring records for the same primary product.

  • CVE-2005-2541Tar 1.15.1 does not properly warn the user when extracting setuid or setgid files, which may allow local users or remote attackers to gain p
    41Plan
  • CVE-2016-6321Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1.14 through 1.29 might allow remote attackers to bypass an i
    35Monitor
  • CVE-2007-4476Buffer overflow in the safer_name_suffix function in GNU tar has unspecified attack vectors and impact, resulting in a "crashing stack."
    34Monitor
  • CVE-2019-9923pax_decode_header in sparse.c in GNU Tar before 1.32 had a NULL pointer dereference when parsing certain archives that have malformed extend
    31Monitor
  • CVE-2023-39804In GNU tar before 1.35, mishandled extension attributes in a PAX archive can lead to an application crash in xheader.c.
    24Monitor
  • CVE-2026-5704Tar: tar: hidden file injection via crafted archives
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:tar1.18-2 · Debian:12Package registry (OSV)
red hat:tar0:1.14-12.5.1.RHEL4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:tar-debuginfo0:1.14-12.5.1.RHEL4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

    If successful

    Confidentiality
    P · data can be read
    Integrity
    P · data or configuration can be modified
    Availability
    P · the service can be disrupted
    Attack complexity
    M
    Confidentiality impact
    P
    Integrity impact
    P
    Availability impact
    P

    Weakness class (CWE)

    —

    CVSS vector

    AV:N/AC:M/Au:N/C:P/I:P/A:P

    nvd-primary

    Attack context

    MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

    MITRE has no CAPEC/ATT&CK mapping for this CWE.

    Noroxi analysis

    No Noroxi analysis for this record yet

    We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

    We use this product, ask for help

    Change log

    1. Fix✗ → ✓

    For records you follow, these changes also arrive as notifications. →

    References

    All records