GHSA-p423-j2cm-9vmq
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
At a glance
- Published
- Updated
- CVE
- CVE-2026-39892
- Aliases
- PYSEC-2026-36
- CVSS_V4
- 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
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: ```python h = Hash(SHA256()) b.update(buf[::-1]) ``` would read past the end of the buffer on Python >3.11
Affected packages
| Package | Versions |
|---|---|
| PyPI · cryptography | introduced 45.0.0, fixed 46.0.7 |
References
- https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-39892 ADVISORY
- https://github.com/pyca/cryptography PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml WEB
- http://www.openwall.com/lists/oss-security/2026/04/08/12 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |