CVEfocus › CVE database › CVE-2018-5996

CVE-2018-5996

CVSS 7.8 HighEPSS 2.9% (higher than 87% of CVEs)Published 2018-01-31Updated 2025-01-10Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
2Fix pending
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10p7zip-rarNot affected
vulnerable_code_not_present
Ubuntu 24.04p7zip-rarNot affected
vulnerable_code_not_present
Ubuntu 22.04p7zip-rarNot affected
vulnerable_code_not_present
Ubuntu 20.04p7zip-rarNot affected
vulnerable_code_not_present
Ubuntu 18.04p7zip-rarNot affected
vulnerable_code_not_present
Ubuntu 16.04p7zip-rarFix pendingUBUNTU-CVE-2018-5996
Ubuntu 14.04p7zip-rarFix pending
Debian 13p7zip-rarFixed16.02-2DEBIAN-CVE-2018-5996
Debian 12p7zip-rarFixed16.02-2DEBIAN-CVE-2018-5996
Red Hat Enterprise Linux 8p7zipNot affected
Alpine Linux 3.17p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.16p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.15p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.14p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.13p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.12p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.11p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.10p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.9p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.8p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.7p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.6p7zipFixed16.02-r3ALPINE-CVE-2018-5996
Alpine Linux 3.5p7zipFixed16.02-r3ALPINE-CVE-2018-5996

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.