Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | cryptography | >= 45.0.0, < 46.0.7 | 46.0.7 |
References
- http://www.openwall.com/lists/oss-security/2026/04/08/12
- https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq
- https://nvd.nist.gov/vuln/detail/CVE-2026-39892
- https://github.com/pyca/cryptography
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-119- Platform
- Python (PyPI)
- Package
cryptography- Disclosed
- 08.04.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-36 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-p423-j2cm-9vmq - CC BY 4.0
Vulnerability history: cryptography
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 24
- First → latest
- 03.2017 08.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 12
- Medium 7
- Low 5
Disclosures per year
- 2017: 1
- 2018: 1
- 2019: 0
- 2020: 1
- 2021: 1
- 2022: 1
- 2023: 7
- 2024: 4
- 2025: 1
- 2026: 7
-
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.