Medium severity · published Feb 7, 2023
CVE-2023-23931
Cipher.update_into can corrupt memory in pyca cryptography
6.5
CVSS
1.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.3% · higher than 70% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CR
cryptography · pyca
>=1.8, < 39.0.1 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-23931
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-23931
Patch
https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3
Exploit
https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
lists.debian.org
https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
security.netapp.com
https://security.netapp.com/advisory/ntap-20230324-0007/
More from cryptography
9.8
CVE-2026-39892
cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
8.7
CVE-2026-69249
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
8.2
CVE-2026-69247
cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
7.5
CVE-2024-26130
cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
7.5
CVE-2023-49083
cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
