ADVISORIES

PyPA Advisory Database

PYSEC-2026-3727

Details

openssl_encrypt versions before 1.4.0 contain a sandbox escape vulnerability in IsolatedPluginExecutor that exposes Python type objects in restricted exec() builtins. Attackers can traverse the Python class hierarchy via __class__.__mro__.__subclasses__() to access system functions and execute arbitrary OS commands.

Affected packages

EcosystemPackageAffected versions
PyPIopenssl-encrypt
All versions before 1.4.0 (fixed in 1.4.0)

References