CVE-2026-39892 — Vulnerability in cryptography — CVE Details
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected cryptography version?
Paste your requirements.txt to check it for CVE-2026-39892 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published April 8, 2026 (233 days ago).
- Last revised November 4, 2026 — 209 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "cryptography>=46.0.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| cryptography PyPI · Affected: 45.0.0, 45.0.1, 45.0.2, 45.0.3 (+11 more) | 46.0.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-119Buffer OverflowMITRE
- CWE-131
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmqWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-39892ADVISORY
- https://github.com/pyca/cryptography/commit/c09d38ae52de7d95fe683b7a7c496f5751616f27WEB
- https://github.com/pyca/cryptography/commit/622d672e429a7cff836a23c5903683dbec1901f5WEB
- https://access.redhat.com/errata/RHSA-2026:43651WEB
- https://access.redhat.com/errata/RHSA-2026:43670WEB
- https://access.redhat.com/errata/RHSA-2026:43851WEB
- https://access.redhat.com/errata/RHSA-2026:43853WEB
- https://access.redhat.com/errata/RHSA-2026:43854WEB
- https://access.redhat.com/errata/RHSA-2026:43855WEB
- https://access.redhat.com/errata/RHSA-2026:46956WEB
- https://access.redhat.com/errata/RHSA-2026:7295WEB
- https://access.redhat.com/security/cve/CVE-2026-39892WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2456735WEB
- https://github.com/pyca/cryptographyPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yamlWEB
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39892.jsonWEB
- https://access.redhat.com/errata/RHSA-2026:19375WEB
- https://access.redhat.com/errata/RHSA-2026:20338WEB
- https://access.redhat.com/errata/RHSA-2026:21017WEB
- https://access.redhat.com/errata/RHSA-2026:22465WEB
- https://access.redhat.com/errata/RHSA-2026:22629WEB
- https://access.redhat.com/errata/RHSA-2026:22840WEB
- https://access.redhat.com/errata/RHSA-2026:23361WEB
- https://access.redhat.com/errata/RHSA-2026:24483WEB
- https://access.redhat.com/errata/RHSA-2026:24761WEB
- https://access.redhat.com/errata/RHSA-2026:24762WEB
- https://access.redhat.com/errata/RHSA-2026:24853WEB
- https://access.redhat.com/errata/RHSA-2026:24866WEB
- https://access.redhat.com/errata/RHSA-2026:24977WEB
- https://access.redhat.com/errata/RHSA-2026:30088WEB
- https://access.redhat.com/errata/RHSA-2026:30089WEB
- https://access.redhat.com/errata/RHSA-2026:37275WEB
- https://access.redhat.com/errata/RHSA-2026:42644WEB
- https://www.openwall.com/lists/oss-security/2026/04/08/12WEB
Frequently Asked Questions
- What is CVE-2026-39892?
- Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-39892?
- CVE-2026-39892 affects cryptography. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-39892 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 53.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-69249HIGH
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
- CVE-2026-69248HIGH
python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
- GHSA-537c-gmf6-5ccfHIGH
Vulnerable OpenSSL included in cryptography wheels
- CVE-2026-69247HIGH
cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
- CVE-2026-69249HIGH
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
- CVE-2023-0286HIGH
Vulnerable OpenSSL included in cryptography wheels
- CVE-2026-69247MEDIUM
cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
- CVE-2026-69248MEDIUM
python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees