Medium severity · published Feb 7, 2023
CVE-2023-23931
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers
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 · Cryptography.io
1.8 before 39.0.1 · source: NVD
Affected product
CR
Cryptography
Cryptography.io
More from Cryptography
9.8
CVE-2026-39892
cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
9.1
CVE-2020-36242
In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer…
7.5
CVE-2024-26130
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers
7.5
CVE-2023-50782
A flaw was found in the python-cryptography package
7.5
CVE-2023-49083
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers