# Pyca Cryptography vulnerable OpenSSL in pre-compiled wheels

Source: https://junglewise.ai/threats/pyca-cryptography-vulnerable-openssl-in-pre-compiled-wheels-d6089b68  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-15. Updated: 2026-06-15  
License: CC BY 4.0 with a link back

Severity: high · CVSS 7.5 · Published 2026-06-15

The pyca/cryptography library, a widely used Python package for secure data handling, distributed pre-compiled versions (wheels) containing a vulnerable version of the OpenSSL security engine. An attacker could exploit these underlying flaws to cause application crashes, memory corruption, or potentially execute unauthorized code. Organizations using the standard pre-built versions of this library should update to ensure their encryption infrastructure remains secure.

Technologies: [cryptography (PyPI)](https://junglewise.ai/threats/technologies/cryptography). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 7.5, published 15 June 2026.

**Which products and versions are affected?** cryptography (PyPI) >= 0.5.0, < 48.0.1.

**Is there a fix for This vulnerability?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run cryptography (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The pyca/cryptography library's pre-compiled 'wheels' (distributed via PyPI) include a statically linked copy of OpenSSL that is vulnerable to several security issues, most notably a high-severity heap use-after-free in the PKCS7_verify() function. This specific flaw is triggered by specially crafted PKCS#7 or S/MIME signed messages containing an empty ASN.1 SET in the digestAlgorithms field, leading to incorrect freeing of a caller-owned BIO object. Attackers can exploit this via the network without authentication to cause a denial-of-service (crash) or potentially achieve remote code execution. Other bundled vulnerabilities include cryptographic bypasses in CMS AuthEnvelopedData and memory exhaustion in QUIC handling. Users are advised to upgrade to version 48.0.1.

## Affected products

- pyca cryptography >= 0.5.0, < 48.0.1

## Timeline

- 2026-06-09: disclosed: Initial disclosure of OpenSSL vulnerabilities and cryptography advisory.
- 2026-06-15: advisory: GitHub Advisory published.

## References

- [https://github.com/pyca/cryptography/security/advisories/GHSA-537c-gmf6-5ccf](https://github.com/pyca/cryptography/security/advisories/GHSA-537c-gmf6-5ccf)
- [https://openssl-library.org/news/secadv/20260609.txt](https://openssl-library.org/news/secadv/20260609.txt)
- [https://api.github.com/repos/pyca/cryptography/security-advisories/GHSA-537c-gmf6-5ccf](https://api.github.com/repos/pyca/cryptography/security-advisories/GHSA-537c-gmf6-5ccf)

## Related threats

- [pyca cryptography improper certificate validation in Name Constraints](https://junglewise.ai/threats/cve-2026-69248-pyca-cryptography-improper-certificate-validation-in-name)
- [Pyca Cryptography exponential path-building in X.509 verification](https://junglewise.ai/threats/cve-2026-69249-pyca-cryptography-exponential-path-building-in-x-509-verification)
- [pyca cryptography Bleichenbacher oracle in PKCS#7 decryption](https://junglewise.ai/threats/cve-2026-69247-pyca-cryptography-bleichenbacher-oracle-in-pkcs-7-decryption)
- [PYSEC-2026-1284 - Vulnerable OpenSSL included in cryptography wheels](https://junglewise.ai/threats/cve-2024-12797-vulnerable-openssl-included-in-cryptography-wheels)
- [PYSEC-2026-1283 - Python Cryptography package vulnerable to Bleichenbacher timing oracle attack](https://junglewise.ai/threats/cve-2023-50782-python-cryptography-package-vulnerable-to-bleichenbacher-timing)
