Advisory

GHSA-p423-j2cm-9vmq

Also known as: CVE-2026-39892, PYSEC-2026-36

Summary

Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-08 19:23 UTC
Modified
2026-11-04 03:30 UTC

Affected packages and fixes

cryptography

PyPI · All systems

Affected

  • introduced 45.0.0, fixed 46.0.7 (ecosystem)

Fixed versions

46.0.7

Fix

  • Fixed version 46.0.7
    pip install --upgrade cryptography==46.0.7

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences