Home / pyca / cryptography / CVE-2023-23931
CVE-2023-23931: is it exploited, and which versions of pyca cryptography are affected and fixed?
CVE-2023-23931 is an unusual condition not checked vulnerability in pyca cryptography. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: cryptography from 1.8 before 39.0.1 (GitHub advisory GHSA-w7pp-m8wf-vj6r). Fixed in 39.0.1 (GitHub advisory GHSA-w7pp-m8wf-vj6r). Severity: Medium (4.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:41 UTC.
What is CVE-2023-23931?
Cipher.update_into can corrupt memory in pyca cryptography
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.
From the CVE record by GitHub_M, last updated November 3, 2025, 21:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pyca | cryptography | >=1.8, < 39.0.1 |
As the CVE record by GitHub_M states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | cryptography | >= 1.8, < 39.0.1 | 39.0.1 | GHSA-w7pp-m8wf-vj6r |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 4, 2025. Summary: Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| cryptography.io | cryptography | from 1.8 before 39.0.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:38 UTC.
How severe is CVE-2023-23931?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L | GitHub_M |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-23931 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, March 10, 2025)
- EPSS
- 1.31% probability of exploitation activity in the next 30 days, percentile 71.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-754 Improper Check for Unusual or Exceptional Conditions
Where are the vendor advisories and references?
- https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r x_refsource_CONFIRM
- https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20230324-0007/
- https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
When was it published, and where is the official record?
- Reserved
- January 19, 2023
- Published
- February 7, 2023, 20:54 UTC
- CVE record updated
- November 3, 2025, 21:47 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:38 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect cryptography?
- Aug 3, 2026CVE-2026-69249 pyca cryptography: denial of service (uncontrolled resource consumption)
- Aug 3, 2026CVE-2026-69248 pyca cryptography: improper certificate validation
- Aug 3, 2026CVE-2026-69247 pyca cryptography: timing side channel
- Apr 8, 2026CVE-2026-39892 pyca cryptography: memory corruption (buffer overflow)
- Mar 31, 2026CVE-2026-34073 pyca cryptography: improper certificate validation
- Feb 10, 2026CVE-2026-26007 pyca cryptography: data authenticity not verified
- Feb 21, 2024CVE-2024-26130 pyca cryptography: NULL pointer dereference (crash)
- Nov 29, 2023CVE-2023-49083 pyca cryptography: NULL pointer dereference (crash)
Questions about CVE-2023-23931
Is CVE-2023-23931 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 1.31% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of pyca cryptography are affected by CVE-2023-23931?
cryptography from 1.8 before 39.0.1, per the GitHub advisory GHSA-w7pp-m8wf-vj6r. The tables above give every range the sources list.
Which version fixes CVE-2023-23931?
39.0.1, per the GitHub advisory GHSA-w7pp-m8wf-vj6r. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-23931?
Medium (4.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-23931?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.