{"id":"CVE-2026-74896","aliases":["PYSEC-2026-3771","GHSA-w7gr-9g4g-33mx"],"title":"openssl_encrypt versions before 1.4.0 contain a sandbox escape vulnerability in the DangerousPatternVisitor AST analyzer that fails to de…","summary":"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__()…","severity":"none","vendor":"openssl-encrypt","product":"openssl-encrypt","ecosystem":"pip","affected":["openssl-encrypt < 1.4.0"],"patched":["openssl-encrypt 1.4.0"],"published":"2026-08-17","updated":"2026-09-02","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/PYSEC-2026-3771","references":[{"url":"https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-w7gr-9g4g-33mx"},{"url":"https://www.vulncheck.com/advisories/openssl-encrypt-before-sandbox-escape-via-dunder-attribute-traversal"}],"tags":["osv","pip"],"epss":0.00559,"epssPercentile":0.44155,"ingestedAt":"2026-09-02T19:31:25.866Z","slug":"CVE-2026-74896","body":"## Overview\n\nopenssl_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.\n\n## Affected packages\n\n- `openssl-encrypt < 1.4.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `openssl-encrypt 1.4.0`","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}