Skip to main content

Python CVE-2026-39892

| EUVDEUVD-2026-20640 MEDIUM
Buffer Overflow (CWE-119)
2026-04-08 https://github.com/pyca/cryptography GHSA-p423-j2cm-9vmq
Medium
Disputed · 6.9 Vendor: https://github.com/pyca/cryptography
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

While CVSS score and vector are not available, the underlying vulnerability class (CWE-119 buffer overflow) combined with the ability to trigger it via user-controlled input to cryptographic functions presents moderate-to-high real-world risk. The attack vector is network or local depending on whether the application receives untrusted data; complexity is low since triggering requires only passing a reversed buffer slice. No publicly available exploit code or CISA KEV confirmation is evident from the input data. However, the fact this affects a widely-used cryptography library (pyca/cryptography) means many applications may be impacted. Organizations using this library on Python 3.11+ should prioritize patching despite the lack of active exploitation signals, as memory disclosure from cryptographic operations could leak sensitive key material or plaintext.

Exploit ScenarioDerived

A web service accepts user-supplied binary data and processes it using pyca/cryptography's Hash.update() to compute a digest. An attacker crafts a request containing a specially constructed non-contiguous buffer (e.g., a reversed slice) that triggers the overread condition, causing the library to read past the buffer boundary and potentially leak adjacent heap memory containing encryption keys or other sensitive data. Alternatively, the out-of-bounds read could trigger a crash, enabling denial of service.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 08, 2026

Buffer overflow in pyca/cryptography library allows reading past allocated memory when non-contiguous Python buffers (such as reversed slices) are passed to cryptographic APIs like Hash.update() on Python 3.11+. Attackers can trigger memory disclosure or denial of service by crafting malformed buffer objects, affecting any application using the cryptography package with vulnerable buffer handling.

RemediationAI

Update the pyca/cryptography package to a patched version by running pip install --upgrade cryptography with the minimum patched version specified in the GitHub advisory at https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq. No workarounds are documented; patching is the primary remediation. Affected applications should audit code for any use of buffer slices or non-contiguous buffer objects passed to cryptography APIs and prioritize upgrading, particularly for Python 3.11+ deployments.

Affected VersionsENISA

cryptography 45.0.0, < 46.0.7

Affected Packages

pypi cryptography fix: 46.0.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in pyca/cryptography's handling of Python buffer protocol objects. The library accepts generic Python buffers via the buffer protocol interface used by APIs like Hash.update(). When a non-contiguous buffer (such as a reversed array slice created with slice notation like buf[::-1]) is passed, the C-level code assumes contiguous memory layout and reads beyond the intended buffer boundaries. This is a classic buffer overread issue (CWE-119: Improper Restriction of Rendered UI Layers or Frames). The bug manifests specifically on Python 3.11+ where buffer semantics changed. The affected CPE is pkg:pip/cryptography, indicating the Python package distributed via PyPI.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Medium–Critical)
Vendor (https://github.com/pyca/cryptography) PRIMARY 6.9 MEDIUM
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
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.3 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: https://github.com/pyca/cryptography

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 09, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 19:23 nvd
MEDIUM 6.9

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed

References

Advisories & patches
ADVISORY https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq ADVISORY https://vuldb.com/vuln/356464 REF http://www.openwall.com/lists/oss-security/2026/04/08/12 REF https://access.redhat.com/errata/RHSA-2026:19375 REF https://access.redhat.com/errata/RHSA-2026:20338 REF https://access.redhat.com/errata/RHSA-2026:21017 REF https://access.redhat.com/errata/RHSA-2026:22465 REF https://access.redhat.com/errata/RHSA-2026:22629 REF https://access.redhat.com/errata/RHSA-2026:22840 REF https://access.redhat.com/errata/RHSA-2026:23361 REF https://access.redhat.com/errata/RHSA-2026:24483 REF https://access.redhat.com/errata/RHSA-2026:24761 REF https://access.redhat.com/errata/RHSA-2026:24762 REF https://access.redhat.com/errata/RHSA-2026:24853 REF https://access.redhat.com/errata/RHSA-2026:24866 REF https://access.redhat.com/errata/RHSA-2026:24977 REF https://access.redhat.com/errata/RHSA-2026:30088 REF https://access.redhat.com/errata/RHSA-2026:30089 REF https://access.redhat.com/errata/RHSA-2026:37275 REF https://access.redhat.com/errata/RHSA-2026:42644 REF https://access.redhat.com/errata/RHSA-2026:43651 REF https://access.redhat.com/errata/RHSA-2026:43670 REF https://access.redhat.com/errata/RHSA-2026:43851 REF https://access.redhat.com/errata/RHSA-2026:43853 REF https://access.redhat.com/errata/RHSA-2026:43854 REF https://access.redhat.com/errata/RHSA-2026:43855 REF https://access.redhat.com/errata/RHSA-2026:46956 REF https://access.redhat.com/errata/RHSA-2026:7295 REF https://access.redhat.com/security/cve/CVE-2026-39892 REF https://bugzilla.redhat.com/show_bug.cgi?id=2456735 REF https://github.com/advisories/GHSA-p423-j2cm-9vmq REF https://github.com/pyca/cryptography/commit/622d672e429a7cff836a23c5903683dbec1901f5 REF https://github.com/pyca/cryptography/commit/c09d38ae52de7d95fe683b7a7c496f5751616f27 REF https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2026-36.yaml REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39892.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy