CVE-2026-39892
Buffer Overflow in Python cryptography Package Before
Publication date: 2026-04-08
Last updated on: 2026-04-15
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| cryptography.io | cryptography | From 45.0.0 (inc) to 46.0.7 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :
The buffer overflow vulnerability could allow an attacker to cause a crash or potentially execute arbitrary code when the affected cryptography APIs process non-contiguous buffers.
Since the cryptography package is used to perform cryptographic operations, exploitation of this vulnerability could compromise the security of applications relying on it.
The CVSS v4.0 base score of 6.9 indicates a medium to high severity impact, meaning it is a significant security risk if left unpatched.
Can you explain this vulnerability to me?
This vulnerability exists in the cryptography package for Python, specifically in versions from 45.0.0 up to but not including 46.0.7. When a non-contiguous buffer is passed to certain APIs that accept Python buffers, such as the Hash.update() function, it can cause a buffer overflow.
A buffer overflow occurs when more data is written to a buffer than it can hold, potentially leading to unexpected behavior or security issues.
This issue was fixed in version 46.0.7 of the cryptography package.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, upgrade the cryptography package to version 46.0.7 or later, where the buffer overflow issue has been fixed.