CVE-2018-5996
Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2018-5996- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-5996- Updated
- 2026-11-02
EUVDEUVD-2018-17761 No score
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.
- Record
EUVD-2018-17761- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2jr3-p4jr-g977
7.8
Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18...
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.
- Record
GHSA-2jr3-p4jr-g977- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-5996
7.8
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.
- Record
ALPINE-CVE-2018-5996- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-35093
7.8
CVE-2018-5996 affecting package p7zip for versions less than 16.02-23
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.
- Record
AZL-35093- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVAZL-6784
7.8
CVE-2018-5996 affecting package p7zip for versions less than 16.02-22
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.
- Record
AZL-6784- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.8
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.
- Record
CVE-2018-5996- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-5996
7.8
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.
- Record
DEBIAN-CVE-2018-5996- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2021-1294
7.8
p7zip security update
7za for Linux system to archive file as 7z file format
Security Fix(es):
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.(CVE-2017-17969)
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.(CVE-2018-5996)
Incorrect initialization logic of RAR decoder objects in 7-Zip 18.03 and before can lead to usage of uninitialized memory, allowing remote attackers to cause a denial of service (segmentation fault) or execute arbitrary code via a crafted RAR archive.(CVE-2018-10115)
A null pointer dereference bug affects the 16.02 and many old versions of p7zip. A lack of null pointer check for the variable folders.PackPositions in function CInArchive::ReadAndDecodePackedStreams in CPP/7zip/Archive/7z/7zIn.cpp, as used in the 7z.so library and in 7z applications, will cause a crash and a denial of service when decoding malformed 7z files.(CVE-2016-9296)
- Record
OESA-2021-1294- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-5996
7.8
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.
- Record
UBUNTU-CVE-2018-5996- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVSUSE-SU-2018:0464-1 No score
Security update for p7zip
This update for p7zip fixes the following issues:
Security issues fixed:
- CVE-2016-1372: Fixed multiple vulnerabilities when processing crafted 7z files (bsc#984650)
- CVE-2017-17969: Fixed a heap-based buffer overflow in a shrink decoder (bsc#1077725)
- CVE-2018-5996: Fixed memory corruption in RAR decompression. The complete RAR decoder was removed as it also has license issues (bsc#1077724 bsc#1077978)
- Record
SUSE-SU-2018:0464-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
p7zipAlpine:v3.10 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.11 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.12 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.13 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.14 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.15 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.16 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.17 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.5 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.6 |
before 16.02-r3 | 16.02-r3 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
p7zipAlpine:v3.7 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.8 |
before 16.02-r3 | 16.02-r3 |
p7zipAlpine:v3.9 |
before 16.02-r3 | 16.02-r3 |
p7zipAzure Linux:3 |
before 16.02-23 | 16.02-23 |
p7zipAzure Linux:2 |
before 16.02-22 | 16.02-22 |
p7zip-rarDebian:12 |
before 16.02-2, plus listed versions 15.09-115.09-215.14.1-116.02-14.44-1 Show 15 moreShow less4.44.ds.1-14.45~ds.1-14.47~ds.1-14.51~ds.1-14.55~ds.1-14.55~ds.1-24.57~ds.1-14.58~ds.1-14.61~ds.1-14.65~ds.1-19.04~ds.1-19.20.1~ds.1-19.20.1~ds.1-29.20.1~ds.1-39.20.1~ds.1-4 |
16.02-2 |
p7zip-rarDebian:13 |
before 16.02-2, plus listed versions 15.09-115.09-215.14.1-116.02-14.44-1 Show 15 moreShow less4.44.ds.1-14.45~ds.1-14.47~ds.1-14.51~ds.1-14.55~ds.1-14.55~ds.1-24.57~ds.1-14.58~ds.1-14.61~ds.1-14.65~ds.1-19.04~ds.1-19.20.1~ds.1-19.20.1~ds.1-29.20.1~ds.1-39.20.1~ds.1-4 |
16.02-2 |
p7zipopenEuler:20.03-LTS-SP2 |
before 16.02-3.oe1 | 16.02-3.oe1 |
p7zipSUSE:Linux Enterprise Desktop 12 SP2 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Desktop 12 SP3 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Server 12 SP2 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Server 12 SP3 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zipSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 9.20.1-7.3.1 | 9.20.1-7.3.1 |
p7zip-rarUbuntu:16.04:LTS |
All versions, plus listed versions 9.20.1~ds.1-39.20.1~ds.1-4 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-5996 is a high vulnerability (CVSS 7.8) in 7-zip, published January 31, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.85%, the 86th percentile. Fixed in p7zip 16.02-r3.
References
landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip
securitytracker.com/id/1040831
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
nvd.nist.gov/vuln/detail/CVE-2018-5996
Show 17 moreShow less
github.com/advisories/GHSA-2jr3-p4jr-g977
security.alpinelinux.org/vuln/CVE-2018-5996
security-tracker.debian.org/tracker/CVE-2018-5996
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1294
nvd.nist.gov/vuln/detail/CVE-2017-17969
nvd.nist.gov/vuln/detail/CVE-2018-10115
nvd.nist.gov/vuln/detail/CVE-2016-9296
suse.com/support/update/announcement/2018/suse-su-20180464-1
bugzilla.suse.com/1077724
bugzilla.suse.com/1077725
bugzilla.suse.com/1077978
bugzilla.suse.com/984650
suse.com/security/cve/CVE-2016-1372
suse.com/security/cve/CVE-2017-17969
suse.com/security/cve/CVE-2018-5996
ubuntu.com/security/CVE-2018-5996
cve.org/CVERecord?id=CVE-2018-5996