CVE-2023-23931

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
4.8 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHub_MCNA
4.8 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 71%
VendorProductVersion
cryptography.iocryptography
1.8 ≤
𝑥
< 39.0.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-cryptography
bullseye
vulnerable
bullseye (security)
3.3.2-1+deb11u1
fixed
bookworm
38.0.4-3+deb12u1
fixed
bookworm (security)
vulnerable
sid
43.0.0-1
fixed
trixie
43.0.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-cryptography
oracular
not-affected
noble
not-affected
mantic
not-affected
lunar
Fixed 38.0.4-2ubuntu0.1
released
kinetic
ignored
jammy
Fixed 3.4.8-1ubuntu2.1
released
focal
Fixed 2.8-3ubuntu0.2
released
bionic
needed
xenial
not-affected
trusty
ignored