CVE-2007-4131 in Gnu Tar and 3 more products
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.
Affects 4 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gnu | Tar | 1.13 1.13.5 1.13.11 1.13.14 1.13.16 1.13.17+10 more1.13.18 1.13.19 1.13.25 1.14 1.14.90 1.15 1.15.1 1.15.90 1.15.91 1.16 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Redhat Enterprise Linux, Redhat Enterprise Linux Desktop, Rpath Rpath Linux
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2007-4131 |
|---|---|
| BreachSpider ID | BS-2007-GLOBAL-333611-M |
| CVSS vector | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| Published | 2007-08-25 |
| Last modified | 2026-06-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2007. A medium severity vulnerability affects Gnu systems (CVE-2007-4131). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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. CVSS vector: AV:N/AC:M/Au:N/C:P/I:P/A:P.
Questions
What is CVE-2007-4131?
This vulnerability was disclosed in 2007. A medium severity vulnerability affects Gnu systems (CVE-2007-4131). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2007-4131?
CVE-2007-4131 has CVSS 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. EPSS: 2.7%.
Is CVE-2007-4131 actively exploited?
No confirmed active exploitation of CVE-2007-4131 as of 2026-09-25.
How do I remediate CVE-2007-4131?
Priority: MONITOR.
What systems are affected by CVE-2007-4131?
CVE-2007-4131 affects Gnu Tar.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gnu","product":"Tar","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.