Live threats

All CVEs / Cryptography.io

CVE-2023-23931Cryptography.io Cryptography

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Feb 7, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-754
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cryptography.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI cryptography ≥ 1.8 < 39.0.1 39.0.1 pip install "cryptography>=39.0.1"
PyPI cryptography ≥ 1.8 < 39.0.1 39.0.1 pip install "cryptography>=39.0.1"

Per OSV / GitHub Advisories (GHSA-w7pp-m8wf-vj6r, PYSEC-2023-11). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cryptography.iocryptography≥ 1.8 < 39.0.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.