{"schemaVersion":3,"id":"CVE-2018-5996","aliases":["ALPINE-CVE-2018-5996","UBUNTU-CVE-2018-5996","DEBIAN-CVE-2018-5996"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2018-01-31T18:00:00.000Z","modified":"2025-01-10T18:55:21.411Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.02875,"percentile":0.86708,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":-1.5679999999999996,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.04443},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02875,"percentile":0.86708}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.04443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02875,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02875,"percentile":0.86708}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_FC1D763859B2DA25","name":"Exploit Reference (landave.io)","source":"reference","url":"https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"7-zip","product":"7-zip","name":"7-Zip","label":"7-zip","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 18.00","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 18.00","eol":null,"hubHref":"/vendor/7-zip/7-zip"},{"vendor":"7-zip","product":"p7zip","name":"p7zip","label":"p7zip","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 18.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 18.0","eol":null,"hubHref":"/vendor/7-zip/p7zip"},{"vendor":"alpine","product":"p7zip","name":"p7zip","label":"p7zip","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/p7zip","purlType":"apk","versions":[{"text":"< 16.02-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.02-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"p7zip-rar","name":"p7zip-rar","label":"p7zip-rar","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/p7zip-rar","purlType":"deb","versions":[{"text":"< 16.02-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 16.02-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"p7zip-rar","name":"p7zip-rar","label":"p7zip-rar","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/p7zip-rar","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null},{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2018-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (Wheezy)","eolFrom":"2018-05-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/","label":"landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/","hostname":"landave.io","tags":["Exploit","Technical Description","Third Party Advisory","REPORT"]},{"url":"http://www.securitytracker.com/id/1040831","label":"www.securitytracker.com/id/1040831","hostname":"www.securitytracker.com","tags":["VDB Entry"]},{"url":"https://0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html","label":"0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html","hostname":"0patch.blogspot.si","tags":[]},{"url":"https://github.com/p7zip-project/p7zip/issues/8","label":"github.com/p7zip-project/p7zip/issues/8","hostname":"github.com","tags":[]},{"url":"https://github.com/p7zip-project/p7zip/issues/32","label":"github.com/p7zip-project/p7zip/issues/32","hostname":"github.com","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-5996","label":"security.alpinelinux.org/vuln/CVE-2018-5996","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-5996","label":"ubuntu.com/security/CVE-2018-5996","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-5996","label":"www.cve.org/CVERecord?id=CVE-2018-5996","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-5996","label":"security-tracker.debian.org/tracker/CVE-2018-5996","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-5996","label":"nvd.nist.gov/vuln/detail/CVE-2018-5996","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["SUSE-SU-2018:0464-1"],"duplicates":[],"related":["SUSE-SU-2018:0464-1"]},"timeline":[{"kind":"published","date":"2018-01-31T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-10T18:55:21.411Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T18:25:15.205Z","stale":false,"partial":false}}