Advisory

PYSEC-2023-11

Also known as: CVE-2023-23931, GHSA-w7pp-m8wf-vj6r

Summary

The record has no summary.

Details

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In affected versions Cipher.update_into would accept Python objects which implement the buffer protocol, but provide only immutable buffers. This would allow immutable objects (such as bytes) to be mutated, thus violating fundamental rules of Python and resulting in corrupted output. This now correctly raises an exception. This issue has been present since update_into was originally introduced in cryptography 1.8.

Severity

Not rated by the source.

Dates

Published
2023-02-07 21:15 UTC
Modified
2026-02-22 22:48 UTC

Affected packages and fixes

cryptography

PyPI · All systems

Affected

  • introduced 1.8, fixed 39.0.1 (ecosystem)

Fixed versions

39.0.1

Fix

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

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