CVE-2023-23931
CVE-2023-23931 is a medium-severity vulnerability in Cryptography.io Cryptography with a CVSS 3.x base score of 4.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-754.
Key facts
- Severity: Medium (CVSS 3.x base score 4.8)
- EPSS exploit prediction: 1% (67th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-754
- Affected product: Cryptography.io Cryptography
- Published:
- Last modified:
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.
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.
- How severe is CVE-2023-23931?
- CVE-2023-23931 has a CVSS 3.x base score of 4.8, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability low.
- Is CVE-2023-23931 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (67th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-23931?
- CVE-2023-23931 affects Cryptography.io Cryptography. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-23931?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2023-23931 published?
- CVE-2023-23931 was published on 2023-02-07 and last updated on 2026-06-17.
References
- https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3
- https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
- https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
- https://security.netapp.com/advisory/ntap-20230324-0007/
Affected products (1)
- cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*
More vulnerabilities in Cryptography.io Cryptography
- CVE-2026-39892 — Critical (CVSS 9.8): cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to…
- CVE-2020-36242 — Critical (CVSS 9.1): In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt…
- CVE-2024-26130 — High (CVSS 7.5): cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Starting in…
- CVE-2023-50782 — High (CVSS 7.5): A flaw was found in the python-cryptography package. This issue may allow a remote attacker to decrypt captured…
- CVE-2023-38325 — High (CVSS 7.5): The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
- CVE-2016-9243 — High (CVSS 7.5): HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.
All CVEs affecting Cryptography.io Cryptography →
Other CWE-754 (Improper Check for Unusual or Exceptional Conditions) vulnerabilities
- CVE-2026-24054 — Critical (CVSS 10.0): Kata Containers is an open source project focusing on a standard implementation of lightweight Virtual Machines (VMs)…
- CVE-2021-0211 — Critical (CVSS 10.0): An improper check for unusual or exceptional conditions in Juniper Networks Junos OS and Junos OS Evolved Routing…
- CVE-2026-8091 — Critical (CVSS 9.8): Incorrect boundary conditions in the Audio/Video: Playback component. This vulnerability was fixed in Firefox 150,…
- CVE-2024-52316 — Critical (CVSS 9.8): Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta…
- CVE-2024-7826 — Critical (CVSS 9.8): Improper Check for Unusual or Exceptional Conditions vulnerability in Webroot SecureAnywhere - Web Shield on Windows,…
- CVE-2023-37303 — Critical (CVSS 9.8): An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. In certain situations, an attempt to…
Browse all CWE-754 (Improper Check for Unusual or Exceptional Conditions) vulnerabilities →