CVE-2026-39892
CRITICAL9.8EPSS 0.02%Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
Published: 4/8/2026Modified: 5/20/2026
Description
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to before 46.0.7, if a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this could lead to buffer overflows. This vulnerability is fixed in 46.0.7.
Affected packages (4)
- Alpine/py3-cryptographyfrom 0, < 46.0.7-r0
- Debian/python-cryptographyfrom 0, < 46.0.7-1
- PyPI/cryptography>= 45.0.0, < 46.0.7
- PyPI/cryptography>= 45.0.0, < 46.0.7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-39892
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2026-39892
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-39892
- PATCHhttps://github.com/pyca/cryptography
- WEBhttps://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq
- WEBhttp://www.openwall.com/lists/oss-security/2026/04/08/12