GHSA-p423-j2cm-9vmqMedium
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
🔗 CVE IDs covered (1)
📋 Description
If a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. For example:
h = Hash(SHA256())
b.update(buf[::-1])
would read past the end of the buffer on Python >3.11
🎯 Affected products1
- pip/cryptography:>= 45.0.0, < 46.0.7
🔗 References (5)
- https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq
- https://nvd.nist.gov/vuln/detail/CVE-2026-39892
- http://www.openwall.com/lists/oss-security/2026/04/08/12
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml
- https://github.com/advisories/GHSA-p423-j2cm-9vmq