VYPR
Moderate severityNVD Advisory· Published Feb 7, 2023· Updated Nov 3, 2025

Cipher.update_into can corrupt memory in pyca cryptography

CVE-2023-23931

Description

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
cryptographyPyPI
>= 1.8, < 39.0.139.0.1

Affected products

141

Patches

Vulnerability mechanics

References

9

News mentions

0

No linked articles in our index yet.