Name | CVE-2023-23931 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3331-1, DLA-3331-2, DLA-3922-1 |
Debian Bugs | 1031049 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-cryptography (PTS) | jessie | 0.6.1-1+deb8u1 | fixed |
stretch | 1.7.1-3+deb9u2 | fixed | |
buster, buster (lts) | 2.6.1-3+deb10u5 | fixed | |
buster (security) | 2.6.1-3+deb10u4 | fixed | |
bullseye | 3.3.2-1 | vulnerable | |
bullseye (security) | 3.3.2-1+deb11u1 | fixed | |
bookworm | 38.0.4-3+deb12u1 | fixed | |
bookworm (security) | 38.0.4-3~deb12u1 | vulnerable | |
sid, trixie | 43.0.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
python-cryptography | source | jessie | (not affected) | |||
python-cryptography | source | stretch | (not affected) | |||
python-cryptography | source | buster | 2.6.1-3+deb10u4 | DLA-3331-2 | ||
python-cryptography | source | bullseye | 3.3.2-1+deb11u1 | DLA-3922-1 | ||
python-cryptography | source | (unstable) | 38.0.4-3 | 1031049 |
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)