CVE-2026-39892
Awaiting Analysis Awaiting Analysis - Queue
Buffer Overflow in Python cryptography Package Before

Publication date: 2026-04-08

Last updated on: 2026-04-15

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-08
Last Modified
2026-04-15
Generated
2026-05-06
AI Q&A
2026-04-09
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
cryptography.io cryptography From 45.0.0 (inc) to 46.0.7 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart