cryptography
Affected
- introduced
45.0.0, fixed46.0.7(ecosystem)
Fixed versions
46.0.7
Fix
- Fixed version
46.0.7pip install --upgrade cryptography==46.0.7
Advisory
Also known as: CVE-2026-39892, PYSEC-2026-36
Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs
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
Medium Basis: The source's own band: MODERATE
45.0.0, fixed 46.0.7 (ecosystem)46.0.7
46.0.7pip install --upgrade cryptography==46.0.7Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0