CVE-2023-23931

NameCVE-2023-23931
Descriptioncryptography 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3331-1, DLA-3331-2
Debian Bugs1031049

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-cryptography (PTS)jessie0.6.1-1+deb8u1fixed
stretch1.7.1-3+deb9u2fixed
buster2.6.1-3+deb10u2vulnerable
buster (security)2.6.1-3+deb10u4fixed
bullseye3.3.2-1vulnerable
bookworm38.0.4-3fixed
bookworm (security)38.0.4-3~deb12u1vulnerable
sid, trixie42.0.5-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-cryptographysourcejessie(not affected)
python-cryptographysourcestretch(not affected)
python-cryptographysourcebuster2.6.1-3+deb10u4DLA-3331-2
python-cryptographysource(unstable)38.0.4-31031049

Notes

[bullseye] - python-cryptography <no-dsa> (Minor issue)
https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
https://github.com/pyca/cryptography/commit/9fbf84efc861668755ab645530ec7be9cf3c6696
[stretch] - python-cryptography <not-affected> (The vulnerable code was introduced later)
[jessie] - python-cryptography <not-affected> (The vulnerable code was introduced later)

Search for package or bug name: Reporting problems