Heap-based buffer overflow in the NCompress::NShrink::CDecoder::CodeReal method in 7-Zip before 18.00 and p7zip allows remote attackers to c
Heap-based buffer overflow in the NCompress::NShrink::CDecoder::CodeReal method in 7-Zip before 18.00 and p7zip allows remote attackers to cause a denial of service (out-of-bounds write) or potentially execute arbitrary code via a crafted ZIP archive.
- Published
- Jan 30, 2018
- Updated
- Jun 16, 2026
- EPSS
- 4.9% · 92th percentile
- CWE
- CWE-787
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.9%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| 7-zip | 7-zip | cpe:2.3:a:7-zip:7-zip |
| 7-zip | p7zip | cpe:2.3:a:7-zip:p7zip |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- 7-zip 7-zipbefore 18.00
- 7-zip p7zipbefore 18.0
- debian debian linux7.0
- debian debian linux8.0
- debian debian linux9.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.10 | p7zip | before 16.02-r2 | 16.02-r2 |
| Debian:12 | p7zip | before 16.02+dfsg-5 | 16.02+dfsg-5 |
| Debian:7 | p7zip | before 9.20.1~dfsg.1-4+deb7u3 | 9.20.1~dfsg.1-4+deb7u3 |
| Debian:8 | p7zip | before 9.20.1~dfsg.1-4.1+deb8u3 | 9.20.1~dfsg.1-4.1+deb8u3 |
| Debian:9 | p7zip | before 16.02+dfsg-3+deb9u1 | 16.02+dfsg-3+deb9u1 |
| openSUSE:Tumbleweed | p7zip | before 16.02-11.3 | 16.02-11.3 |
| SUSE:Linux Enterprise Desktop 12 SP2 | p7zip | before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
Same product
7-zip: all recordsOther highest-scoring records for the same primary product.
- CVE-2025-04117-Zip Mark-of-the-Web Bypass VulnerabilityKEV78This week
- CVE-2023-31102Ppmd7.c in 7-Zip before 23.00 allows an integer underflow and invalid read operation via a crafted 7Z archive.48Plan
- CVE-2008-6536Unspecified vulnerability in 7-zip before 4.5.7 has unknown impact and remote attack vectors, as demonstrated by the PROTOS GENOME test suit41Plan
- CVE-2025-110017-Zip ZIP File Parsing Directory Traversal Remote Code Execution Vulnerability39Monitor
- CVE-2024-114777-Zip Zstandard Decompression Integer Underflow Remote Code Execution Vulnerability38Monitor
- CVE-2026-48095GHSL-2026-140_7-Zip: 7-Zip has a heap buffer overflow via NTFS compressed stream buffer under-allocation35Monitor
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 |
|---|---|---|
| alpine:p7zip | 16.02-r2 · Alpine:v3.10 | Package registry (OSV) |
| debian:p7zip | 16.02+dfsg-5 · Debian:12 | Package registry (OSV) |
| opensuse:p7zip | 16.02-11.3 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:p7zip | 9.20.1-7.3.1 · SUSE:Linux Enterprise Desktop 12 SP2 | Package 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.
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
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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 helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securitytracker.com/id/1040831
- 0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html
- github.com/p7zip-project/p7zip/issues/7
- lists.debian.org/debian-lts-announce/2018/02/msg00003.html
- usn.ubuntu.com/3913-1/
- www.debian.org/security/2018/dsa-4104
Vendor advisories and official records. Exploit/PoC links are deliberately left out.