Skip to main content
MEDIUM

CVE-2023-23931

CVSS v3

6.5

MEDIUM

EPSS Score

1.3 %

exploit probability, as of 2026-10-17

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for cryptography. Watch cryptography in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cryptographyPyPIfrom 1.8 · fixed in 39.0.1
  • python3-cryptographyAlmaLinux:9all versions · fixed in 36.0.1-4.el9
  • python3-cryptographyAlmaLinux:8all versions · fixed in 3.2.1-6.el8
  • python39AlmaLinux:8all versions · fixed in 3.9.18-3.module_el8.10.0+3765+2f9a457dand 7 other packages
  • python39-attrsAlmaLinux:8all versions · fixed in 20.3.0-2.module_el8.6.0+2780+a40f65e1
  • python39-cffiAlmaLinux:8all versions · fixed in 1.14.3-2.module_el8.6.0+3248+c431e88c
  • python39-chardetAlmaLinux:8all versions · fixed in 3.0.4-19.module_el8.6.0+2780+a40f65e1
  • python39-cryptographyAlmaLinux:8all versions · fixed in 3.3.1-3.module_el8.10.0+3765+2f9a457d

31 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-23931 Red Hat Product Security302 products fixed · 10 known affected

    python-cryptography: memory corruption via immutable objects

    discovery-server-container as a component of Red Hat Discovery 1 · python-cryptography.src as a component of Red Hat Enterprise Linux 7 · python2-cryptography as a component of Red Hat Enterprise Linux 7

  • RHSA-2024:2985 Red Hat Product Security229 products fixed

    Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update

  • ICSA-24-046-11 CISA11 known affected

    Siemens SCALANCE XCM-/XRM-300

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2)

  • SSA-806742 Siemens ProductCERT11 known affected

    SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2)

  • RHSA-2023:7341 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Quay security update

  • RHSA-2023:7096 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: python-cryptography security update

4 more advisories

Full record on NVD

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.

Technical details

Published
2023-02-07

Frequently asked questions

What is CVE-2023-23931?

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.

Is CVE-2023-23931 actively exploited?

Active exploitation of CVE-2023-23931 has not been confirmed. Its EPSS score was 1.3% on 2026-10-17, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-23931?

CVE-2023-23931 has a CVSS v3 base score of 6.5 (MEDIUM severity).

Running cryptography? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key