CVE-2023-23931
MEDIUMcryptography 1.8-39.0.0 - Buffer Protocol Violation via Immutable Buffer Mutation
Title source: llmDescription
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.
References (4)
Core 4
Core References
Vendor Advisory
https://security.netapp.com/advisory/ntap-20230324-0007/
Exploit, Vendor Advisory x_refsource_confirm
https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
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