---
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.44232
ingestedAt: '2026-09-02T19:31:25.866Z'
---

## Overview

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.

## Affected packages

- `openssl-encrypt < 1.4.0`

## Remediation

Upgrade to a patched release:

- `openssl-encrypt 1.4.0`
