Advisory

PYSEC-2026-36

Also known as: CVE-2026-39892, GHSA-p423-j2cm-9vmq

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-04-08 21:17 UTC
Modified
2026-05-20 09:18 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: PyPA Advisory Database · CC BY 4.0

Sources & licences