{"id":"CVE-2018-5996","aliases":["ALPINE-CVE-2018-5996","AZL-35093","AZL-6784","DEBIAN-CVE-2018-5996","EUVD-2018-17761","GHSA-2jr3-p4jr-g977","OESA-2021-1294","SUSE-SU-2018:0464-1","UBUNTU-CVE-2018-5996"],"status":"published","title":"Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18...","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.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02851,"percentile":0.86816,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2018-01-31T18:00:00Z","modified":"2026-11-05T05:40:51Z","fixes":[{"ecosystem":"Alpine:v3.10","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.11","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.12","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.6","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.7","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.8","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Alpine:v3.9","package":"p7zip","fixed_in":["16.02-r3"],"sources":["osv"]},{"ecosystem":"Azure Linux:3","package":"p7zip","fixed_in":["16.02-23"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"p7zip","fixed_in":["16.02-22"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"p7zip-rar","fixed_in":["16.02-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"p7zip-rar","fixed_in":["16.02-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.10","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.11","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.12","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.6","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.7","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.8","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Alpine:v3.9","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-r3"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-23"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-22"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"p7zip-rar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-2"}]}],"versions":["15.09-1","15.09-2","15.14.1-1","16.02-1","4.44-1","4.44.ds.1-1","4.45~ds.1-1","4.47~ds.1-1","4.51~ds.1-1","4.55~ds.1-1","4.55~ds.1-2","4.57~ds.1-1","4.58~ds.1-1","4.61~ds.1-1","4.65~ds.1-1","9.04~ds.1-1","9.20.1~ds.1-1","9.20.1~ds.1-2","9.20.1~ds.1-3","9.20.1~ds.1-4"]},{"source":"osv","ecosystem":"Debian:13","package":"p7zip-rar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-2"}]}],"versions":["15.09-1","15.09-2","15.14.1-1","16.02-1","4.44-1","4.44.ds.1-1","4.45~ds.1-1","4.47~ds.1-1","4.51~ds.1-1","4.55~ds.1-1","4.55~ds.1-2","4.57~ds.1-1","4.58~ds.1-1","4.61~ds.1-1","4.65~ds.1-1","9.04~ds.1-1","9.20.1~ds.1-1","9.20.1~ds.1-2","9.20.1~ds.1-3","9.20.1~ds.1-4"]},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"16.02-3.oe1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP2","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"p7zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.20.1-7.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"p7zip-rar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.20.1~ds.1-3","9.20.1~ds.1-4"]}],"products":[{"vendor":"7-zip","product":"7-zip"},{"vendor":"7-zip","product":"p7zip"},{"vendor":"debian","product":"debian_linux"}],"references":[{"url":"https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","Third Party Advisory","evidence","report"]},{"url":"http://www.securitytracker.com/id/1040831","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"https://0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html","tags":["x_refsource_MISC","x_transferred","article"]},{"url":"https://github.com/p7zip-project/p7zip/issues/8","tags":["report"]},{"url":"https://github.com/p7zip-project/p7zip/issues/32","tags":["report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-5996","tags":["web","advisory"]},{"url":"https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip"},{"url":"https://github.com/advisories/GHSA-2jr3-p4jr-g977"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-5996","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-5996","tags":["advisory"]},{"url":"https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1294","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17969","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10115","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9296","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180464-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1077724","tags":["report"]},{"url":"https://bugzilla.suse.com/1077725","tags":["report"]},{"url":"https://bugzilla.suse.com/1077978","tags":["report"]},{"url":"https://bugzilla.suse.com/984650","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-1372","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17969","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-5996","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-5996","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-5996","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:00:00Z","modified":"2025-01-10T18:55:21.411Z","updated_at":"2026-11-02T14:35:01.28843Z"}],"euvd":[{"id":"EUVD-2018-17761","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.","status":"published","published":"2018-01-31T18:00:00Z","modified":"2025-01-10T18:55:21Z","updated_at":"2026-11-03T00:04:21.239531Z"}],"ghsa":[{"id":"GHSA-2jr3-p4jr-g977","title":"Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18...","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.","status":"published","published":"2022-05-13T01:52:59Z","modified":"2025-01-10T21:32:24Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:59:27.888313Z"}],"nvd":[{"id":"CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:29:00.363Z","modified":"2026-06-17T02:01:08.09Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:04:22.897995Z"}],"osv":[{"id":"ALPINE-CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:29:00.363Z","modified":"2026-10-23T17:23:42.365658439Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:47.663013Z"},{"id":"AZL-35093","title":"CVE-2018-5996 affecting package p7zip for versions less than 16.02-23","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.","status":"published","published":"2018-01-31T18:29:00Z","modified":"2026-11-05T05:40:51Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-05T16:41:19.554273Z"},{"id":"AZL-6784","title":"CVE-2018-5996 affecting package p7zip for versions less than 16.02-22","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.","status":"published","published":"2018-01-31T18:29:00Z","modified":"2026-04-21T04:38:16.108027Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:08.630357Z"},{"id":"CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:29:00.363Z","modified":"2026-03-15T14:31:35.090189Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:29:00.363Z","modified":"2026-10-23T18:02:30.020600397Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"OESA-2021-1294","title":"p7zip security update","description":"7za for Linux system to archive file as 7z file format\r\n\r\nSecurity Fix(es):\r\n\r\nHeap-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)\r\n\r\nInsufficient 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)\r\n\r\nIncorrect 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)\r\n\r\nA 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)","status":"published","published":"2021-07-31T11:04:32Z","modified":"2026-08-18T01:15:52.933018715Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:38.987987Z"},{"id":"UBUNTU-CVE-2018-5996","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.","status":"published","published":"2018-01-31T18:29:00Z","modified":"2025-10-24T04:46:52Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.33562Z"},{"id":"SUSE-SU-2018:0464-1","title":"Security update for p7zip","description":"\n  \nThis update for p7zip fixes the following issues:\n\nSecurity issues fixed:\n\n- CVE-2016-1372: Fixed multiple vulnerabilities when processing crafted 7z files (bsc#984650)\n- CVE-2017-17969: Fixed a heap-based buffer overflow in a shrink decoder (bsc#1077725)\n- 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)\n\n","status":"published","published":"2018-02-16T12:45:57Z","modified":"2025-05-02T04:05:08.076424Z","updated_at":"2026-11-02T15:53:44.594517Z"}]}}
