cve.bz

CVE-2023-23931

6.5 mediumEPSS 1.3%

Medium (6.5) in cryptography.io cryptography. EPSS 1.3% chance of exploitation in the next 30 days. Fixed in cryptography 39.0.1.

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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
EPSS
1.3% chance of exploitation in the next 30 days; higher than 70% of CVEs (scores of 2026-10-31)
CWE
CWE-754
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w7pp-m8wf-vj6rPyPIcryptography>=1.8 <39.0.139.0.1
PYSEC-2023-11PyPIcryptography>=1.8 <39.0.139.0.1

References

Check your stackJSON