# CVE-2026-74896: openssl_encrypt before 1.4.0 Sandbox Escape via Dunder Attribute Traversal

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-17T11:04:57.881Z
- Modified: 2026-10-01T15:21:04.434Z
- Also known as: PYSEC-2026-3771, GHSA-w7gr-9g4g-33mx
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulnCheck

## Description

openssl_encrypt versions before 1.4.0 contain a sandbox escape vulnerability in the DangerousPatternVisitor AST analyzer that fails to detect dunder attribute traversal techniques. Attackers can use __class__, __bases__, __subclasses__(), and __globals__ chains to access restricted functions and execute arbitrary system commands from plugin code.

(As written by CVE List.)

## Affected

- jahlives openssl_encrypt: before 1.4.0 (not affected: 1.4.0)
- openssl-encrypt (PyPI): before 1.4.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-w7gr-9g4g-33mx> (exploit, advisory, mitigation, vendor-advisory)
- <https://www.vulncheck.com/advisories/openssl-encrypt-before-sandbox-escape-via-dunder-attribute-traversal> (advisory, third-party-advisory)

## Sources

- CVE List: [CVE-2026-74896](https://www.cve.org/CVERecord?id=CVE-2026-74896), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-74896](https://nvd.nist.gov/vuln/detail/CVE-2026-74896), Public domain, modified 2026-09-01
- PyPA Advisory Database: [PYSEC-2026-3771](https://osv.dev/vulnerability/PYSEC-2026-3771), CC-BY-4.0, modified 2026-09-02

---

Page: https://cve.day/CVE-2026-74896 · Whole record: https://cve.day/CVE-2026-74896.json · Rebuilt by cve.day 2026-11-25T22:59:33.339Z
