CVE-2023-23931

Aliases:GHSA-w7pp-m8wf-vj6rPYSEC-2023-11
Advisory lineage Upstream: 0 Downstream: 26
Modified
Published: 07 Feb 2023, 20:54
Last modified:03 Nov 2025, 21:47

Vulnerability Summary

Overall Risk (default)
medium
36/100
CVSS Score
6.5 MEDIUM
v3.1 (nvd)
EPSS Score
0.69% LOW
1% probability +0.03%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected

Timeline

07 Feb 2023, 20:54
Published
Vulnerability first disclosed
03 Nov 2025, 21:47
Last Modified
Vulnerability 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

  • v4.0MEDIUMScore: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
  • v3.1MEDIUMScore: 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
  • v3.1MEDIUMScore: 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

EPSS Trends

Current EPSS score: 0.69% Percentile: 72%

Techniques & Countermeasures

  • CWE-754Improper Check for Unusual or Exceptional Conditions

    The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.

Affected Systems

  • cryptography.iocryptography

    ≥ 1.8, < 39.0.1

  • pycacryptography

    ≥ 1.8, < 39.0.1

  • PyPIcryptography

    < 94a50a9731f35405f0357fa5f3b177d46a726ab3 | ≥ 1.8, < 39.0.1

References (10)