NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-39892: Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs

mediumCVSS 4.0 6.9 · 3.1 9.8GHSA-p423-j2cm-9vmq

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: would read past the end of the buffer on Python 3.11

Published Apr 8, 2026 · Updated Nov 4, 2026

Affected packages

cryptography

Ecosystem
PyPI
Affected
>= 45.0.0, < 46.0.7
Fixed in
46.0.7
Check
pip show cryptography

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to ranjiGT.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries