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, DLA-3922-1
Debian Bugs1031049

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-cryptography (PTS)bullseye3.3.2-1vulnerable
bullseye (security)3.3.2-1+deb11u1fixed
bookworm38.0.4-3+deb12u1fixed
bookworm (security)38.0.4-3~deb12u1vulnerable
sid, trixie43.0.0-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-cryptographysourcebuster2.6.1-3+deb10u4DLA-3331-2
python-cryptographysourcebullseye3.3.2-1+deb11u1DLA-3922-1
python-cryptographysource(unstable)38.0.4-31031049

Notes

https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
https://github.com/pyca/cryptography/commit/9fbf84efc861668755ab645530ec7be9cf3c6696

Search for package or bug name: Reporting problems