Buffer overflow in the safer_name_suffix function in GNU tar has unspecified attack vectors and impact, resulting in a "crashing stack."
- Published
- Sep 4, 2007
- Updated
- Jun 16, 2026
- EPSS
- 14.9% · 97th percentile
- CWE
- CWE-119
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
34
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 4 / 30 · 14.9%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| gnu | tar | cpe:2.3:a:gnu:tar |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux6.06
- canonical ubuntu linux7.04
- canonical ubuntu linux7.10
- debian debian linux3.1
- debian debian linux4.0
- gnu tarbefore 1.19
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | cpio | before 2.9-5 | 2.9-5 |
| Debian:12 | tar | before 1.18-1 | 1.18-1 |
| Debian:3.1 | tar | before 1.14-2.4 | 1.14-2.4 |
| Debian:4.0 | cpio | before 2.6-18.1+etch1 | 2.6-18.1+etch1 |
| Debian:4.0 | tar | before 1.16-2etch1 | 1.16-2etch1 |
| Red Hat:enterprise_linux:4::as | tar | before 0:1.14-13.el4_8.1 | 0:1.14-13.el4_8.1 |
| Red Hat:enterprise_linux:4::as | tar-debuginfo | before 0:1.14-13.el4_8.1 | 0:1.14-13.el4_8.1 |
| Red Hat:enterprise_linux:5::client | cpio | before 0:2.6-23.el5_4.1 | 0:2.6-23.el5_4.1 |
| Red Hat:enterprise_linux:5::client | cpio-debuginfo | before 0:2.6-23.el5_4.1 | 0:2.6-23.el5_4.1 |
| Red Hat:enterprise_linux:5::client | tar | before 2:1.15.1-23.0.1.el5_4.2 | 2:1.15.1-23.0.1.el5_4.2 |
| Red Hat:enterprise_linux:5::client | tar-debuginfo | before 2:1.15.1-23.0.1.el5_4.2 | 2:1.15.1-23.0.1.el5_4.2 |
Same product
gnu: all recordsOther 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 p41Plan
- 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 i35Monitor
- 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 extend31Monitor
- CVE-2007-4131Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwr28Monitor
- 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 archives22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:cpio | 2.9-5 · Debian:12 | Package registry (OSV) |
| debian:tar | 1.18-1 · Debian:12 | Package registry (OSV) |
| red hat:cpio | 0:2.6-23.el5_4.1 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:cpio-debuginfo | 0:2.6-23.el5_4.1 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:tar | 0:1.14-13.el4_8.1 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:tar-debuginfo | 0:1.14-13.el4_8.1 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | dos | 2007-11-14 |
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.
- Published
- First PoC+70 d
- TodaySep 30, 2026+6966 d
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.
Credits
All researchersFinders, 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
- No special conditions are required; it is repeatable.
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
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
AV:N/AC:L/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.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
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 helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- bugs.gentoo.org/show_bug.cgi?id=196978
- kb.juniper.net/InfoCenter/index?page=content&id=JSA10691
- kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- secunia.com/advisories/26674
- secunia.com/advisories/26987
- secunia.com/advisories/27331
- secunia.com/advisories/27453
- secunia.com/advisories/27514
- secunia.com/advisories/27681
- secunia.com/advisories/27857
- secunia.com/advisories/28255
- secunia.com/advisories/29968
- secunia.com/advisories/32051
- secunia.com/advisories/33567
- secunia.com/advisories/39008
- security.gentoo.org/glsa/glsa-200711-18.xml
- sunsolve.sun.com/search/document.do?assetkey=1-77-1021680.1-1
- www.debian.org/security/2007/dsa-1438
- www.debian.org/security/2008/dsa-1566
- www.mandriva.com/security/advisories?name=MDKSA-2007:197
Vendor advisories and official records. Exploit/PoC links are deliberately left out.