CVE-2023-23931

MEDIUM

cryptography 1.8-39.0.0 - Buffer Protocol Violation via Immutable Buffer Mutation

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 4.8
EPSS 0.0130
EPSS Percentile 66.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-754
Status published
Products (2)
cryptography.io/cryptography 1.8 - 39.0.1
pypi/cryptography 1.8 - 39.0.1PyPI
Published Feb 07, 2023
Tracked Since Feb 18, 2026