CVE-2026-39892
cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
Also known as GHSA-p423-j2cm-9vmq, PYSEC-2026-36
Mitigation
- Upgrade cryptography to 46.0.7 or later.
Who should check
- Projects that depend on PyPI package cryptography (>= 45.0.0, < 46.0.7)
- Anyone running pyca cryptography >= 45.0.0, < 46.0.7
Vulnerability facts
- Affected
- cryptography >= 45.0.0, < 46.0.7
- Fixed in
- 46.0.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.80% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-119
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI cryptography | >= 45.0.0, < 46.0.7 | 46.0.7 | osv |
| pyca cryptography | >= 45.0.0, < 46.0.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-39892. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-39892.md Affected: cryptography >= 45.0.0, < 46.0.7 Fixed in: 46.0.7 Steps: 1. Search this machine and project for cryptography (PyPI), pyca cryptography: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq
- http://www.openwall.com/lists/oss-security/2026/04/08/12
- https://access.redhat.com/errata/RHSA-2026:24761
- https://access.redhat.com/errata/RHSA-2026:24762
- https://access.redhat.com/errata/RHSA-2026:30089
- https://access.redhat.com/errata/RHSA-2026:30088
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/errata/RHSA-2026:20338
- https://access.redhat.com/errata/RHSA-2026:43855
- https://access.redhat.com/errata/RHSA-2026:43854
- https://access.redhat.com/errata/RHSA-2026:43851
- https://access.redhat.com/errata/RHSA-2026:43670
- https://access.redhat.com/errata/RHSA-2026:43853
- https://access.redhat.com/errata/RHSA-2026:43651
- https://access.redhat.com/errata/RHSA-2026:46956
- https://access.redhat.com/errata/RHSA-2026:7295
- https://access.redhat.com/errata/RHSA-2026:42644
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:37275
- https://access.redhat.com/errata/RHSA-2026:22840
- https://access.redhat.com/errata/RHSA-2026:22629
- https://access.redhat.com/errata/RHSA-2026:21017
- https://access.redhat.com/errata/RHSA-2026:24853
- https://access.redhat.com/errata/RHSA-2026:19375
- https://access.redhat.com/errata/RHSA-2026:22465
- https://access.redhat.com/errata/RHSA-2026:23361
- https://access.redhat.com/errata/RHSA-2026:24483
- https://nvd.nist.gov/vuln/detail/CVE-2026-39892
Patches
Other
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml
- https://access.redhat.com/security/cve/CVE-2026-39892
- https://bugzilla.redhat.com/show_bug.cgi?id=2456735
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39892.json
- https://github.com/pyca/cryptography
FAQ
Is CVE-2026-39892 being exploited?
There is no confirmed exploitation: CVE-2026-39892 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-39892?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-39892?
cryptography >= 45.0.0, < 46.0.7.
Is there a fix for CVE-2026-39892?
Yes. Fixed in 46.0.7. Upgrade cryptography to 46.0.7 or later.
How do I check if I'm affected by CVE-2026-39892?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.