6.5

CVE-2023-23931: Cipher.update_into can corrupt memory in pyca cryptography

Modified
AliasesALPINE-CVE-2023-23931MGASA-2023-0071SUSE-SU-2023:0722-1
Published 07-02-2023Last modified 03-11-2025

Vulnerability summary

CVE-2023-23931 is a medium (CVSS 6.5) vulnerability in cryptography.io cryptography. EPSS estimates a 1.30% chance of exploitation in the next 30 days, higher than 70.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
1.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 8 · Related 4

Timeline

  1. 07-02-2023
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

10 scores · 9 sources · 2 versions

EPSS trend

Probability

1.30%

Chance of exploitation in the next 30 days

Percentile

70%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.30% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Cryptography

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Suse84 products
  • python-cffi&distro=HPE Helion OpenStack 8< 1.10.0-4.3.1
  • python-cffi&distro=SUSE Linux Enterprise Server 12 SP5< 1.11.5-5.19.1
  • python-cffi&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 1.11.5-5.19.1
  • python-cffi&distro=SUSE OpenStack Cloud 8< 1.10.0-4.3.1
  • python-cffi&distro=SUSE OpenStack Cloud 9< 1.11.5-3.3.1
Opensuse4 products
  • python-cryptography&distro=openSUSE Leap 15.4< 3.3.2-150400.16.6.1
  • python-cryptography&distro=openSUSE Leap Micro 5.3< 3.3.2-150400.16.6.1
  • python-cryptography&distro=openSUSE Tumbleweed< 39.0.1-1.1
  • python-oci-sdk&distro=openSUSE Tumbleweed< 2.180.0-1.2
Redhat4 products
  • python-cryptography< 0:36.0.1-4.el9 | < 0:3.2.1-6.el8
  • python-cryptography-debugsource< 0:36.0.1-4.el9 | < 0:3.2.1-6.el8
  • python3-cryptography< 0:36.0.1-4.el9 | < 0:3.2.1-6.el8
  • python3-cryptography-debuginfo< 0:36.0.1-4.el9 | < 0:3.2.1-6.el8
Alpine1 product
  • py3-cryptography≥ 1.8, < 38.0.3-r1 | ≥ 1.8, < 39.0.1-r0
Chainguard1 product
  • mitmproxy< 12.2.1-r0
Cryptography.io1 product
Debian1 product
  • python-cryptography< 2.6.1-3+deb10u3 | < 2.6.1-3+deb10u4 | < 38.0.4-3
Mageia1 product
  • python-cryptography< 3.3.1-1.2.mga8
Pyca1 product
PyPI1 product
  • cryptography< 94a50a9731f35405f0357fa5f3b177d46a726ab3 | ≥ 1.8, < 39.0.1
Ubuntu1 product
  • python-cryptography< 2.1.4-1ubuntu1.4+esm6 | < 2.8-3ubuntu0.2 | < 3.4.8-1ubuntu2.1
Wolfi1 product
  • mitmproxy< 12.2.1-r0

12 vendors · 101 products

References

44 links
Show all 44 references