Information Exposure Through an Error Message in python-cryptography - #VU140695
Published: August 1, 2026
python-cryptography
Detailed vulnerability description
The vulnerability allows a remote attacker to recover plaintext from PKCS#7 EnvelopedData messages.
The vulnerability exists due to generation of error message containing sensitive information and observable timing discrepancy in pkcs7_decrypt_der, pkcs7_decrypt_pem, and pkcs7_decrypt_smime when decrypting attacker-supplied EnvelopedData. A remote attacker can send crafted EnvelopedData messages and observe distinguishable errors and timing differences to recover plaintext from PKCS#7 EnvelopedData messages.
Exploitation requires a service that automatically decrypts untrusted EnvelopedData for the victim certificate and returns adaptive responses at high volume.