CVE-2018-5996 json
Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18.00 and p7zip can lead to multiple memory…
published 8y ago modified 4mo ago also EUVD-2018-17761
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.9%
- EPSS 2.9% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18.00 and p7zip can lead to multiple memory corruptions within the PPMd code, allows remote attackers to cause a denial of service (segmentation fault) or execute arbitrary code via a crafted RAR archive.
Patch / fix
- 7-zip 7-zip 18.00
- 7-zip p7zip 18.0
- p7zip-rar Debian 13, Debian 12 16.02-2
debian advisories DEBIAN-CVE-2018-5996
- p7zip SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 9.20.1-7.3.1
suse advisories SUSE-SU-2018:0464-1
- p7zip Alpine 3.17, Alpine 3.16, Alpine 3.15 +10 more 16.02-r3
alpine advisories ALPINE-CVE-2018-5996
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- p7zip Azure Linux 3.0 16.02-23
- p7zip CBL-Mariner 2.0 16.02-22
azure linux advisories AZL-35093AZL-6784
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Is CVE-2018-5996 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-5996 updated cvss 9.8
p7zip: memory corruption in RAR decompression
-
Red Hat Enterprise Linux 8 p7zipnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.85% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- landave.io https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
landave.io
/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/
exploit, technical-description, third-party-advisory
-
securitytracker.com
/id/1040831
vdb-entry
- 0patch.blogspot.si /2018/02/two-interesting-micropatches-for-7-zip.html
- github.com /p7zip-project/p7zip/issues/8
- github.com /p7zip-project/p7zip/issues/32
Sources
- CVE List CVE-2018-5996
- NVD CVE-2018-5996
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.