VDB

CVE-2023-23931

CVE-2023-23931 PUBLISHED CVSS 4.8 MEDIUM

Cipher.update_into can corrupt memory in pyca cryptography

Reported by github_m · Published February 7, 2023

cryptography is fixed in 39.0.1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
cryptographyPyPI39.0.1
py3-cryptographyAlpine39.0.1-r0, 38.0.3-r1
python3-cryptographyAmazon Linux36.0.1-1.amzn2023.0.4
mitmproxyWolfi12.2.1-r0

Risk scores

CVSS 3.1
4.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Affected products

VendorProductVersions
pycacryptography>=1.8, < 39.0.1
alpinepy3-cryptography0, 0
amazon:2023python3-cryptography0
wolfimitmproxy0
PyPIcryptography1.8
pycacryptography1.8
pycacryptography
chainguardmitmproxy0

Timeline

  • Feb 7, 2023 CVE Published
  • Feb 8, 2023 EPSS Score (30 in total, the first dated here)
  • Feb 21, 2026 Security Advisory (16 in total, the first dated here)
  • Mar 21, 2026 Distribution Patch (13 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-23931
vulnetix vdb fixes CVE-2023-23931

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-23931/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›