CVE-2023-23931
A public proof of concept exists; no exploitation attested.
- Published2023-02-07
- Fixed in39.0.1
- WeaknessCWE-754
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-02-0721:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 39.0 | ≥ 1.8, < 39.0.1 | 39.0.1 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- pyca cryptographyAffected
- = >=1.8, < 39.0.1no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2023-02-07
Distribution builds and vendor advisories
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
- automation-controller-venv-towerRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:4.4.3-1.el9ap
- automation-controller-venv-towerRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:4.4.3-1.el8ap
- automation-eda-controllerRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:1.0.1-1.el9apand 2 other packages
- automation-eda-controllerRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:1.0.1-1.el8apand 2 other packages
- cryptographyTuxCare:PyPIfrom 3.4.8.post0 · fixed in 3.4.8.post1+tuxcare
- cryptographyRoot:PyPIall versions · fixed in 36.0.1+aikido.7
- cryptographyRoot:PyPIall versions · fixed in 36.0.1+aikido.3
- cryptographyRoot:PyPIall versions · fixed in 36.0.1+aikido.4
251 more package ranges on OSV.dev
Vendor advisories
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 · +7 more
Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update
Siemens SCALANCE XCM-/XRM-300
SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more
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) · +8 more
Red Hat Security Advisory: Red Hat Quay security update
Red Hat Security Advisory: python-cryptography security update
4 more advisories
Fix
- Update Cryptography.io cryptography to 39.0.1
- Vendor fix Red Hat Product Security RHSA-2024:2985 · 229 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Siemens ProductCERT SSA-806742 · 10 productsUpdate to V2.4 or later version
- Vendor fix CISA ICSA-24-046-11 · 10 productsUpdate to V2.4 or later version
- Vendor fix Red Hat Product Security RHSA-2023:4971 · 8 productsRed Hat Ansible Automation Platform
- No fix available, says the vendor Red Hat Product Security CVE-2023-23931 · 1 productAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2023-23931 · 5 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-03-10
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-03-10
- CNACVSS 3.14.8known since 2026-10-23
- NVDCVSS 3.16.5read 2026-10-23
- CNAweakness (CWE)CWE-754known since 2026-10-23
- FIRST EPSSEPSS score1.3 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2023-02-07
Identifiers
- AZL-13353same flawAzure Linux · MIT
- AZL-35127same flawAzure Linux · MIT
- CGA-733r-4jj6-9rf3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-pvfh-5xh2-6xccsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2023-0058same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-w7pp-m8wf-vj6rsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-462x-826g-9pr9same flawMinimOS · LicenseRef-unstated
- PYSEC-2023-11same flawPyPA Advisory Database · CC-BY-4.0
- ALSA-2023:6615advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:7096advisory covering several CVEsAlmaLinux · MIT
- ALSA-2024:2985advisory covering several CVEsAlmaLinux · MIT
- DLA-3331-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3331-2advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3922-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0071advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1085advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1088advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1090advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1113advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12681-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:14739-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:12020-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:4693advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4971advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6615advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6793advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7096advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2985advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2024:2985advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2023:0722-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0722-2advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0737-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0837-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0838-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0839-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:1763-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:1767-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2144-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:2218-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6539-1advisory covering several CVEsUbuntu
- USN-8776-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- Published
- 2023-02-07
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-w7pp-m8wf-vj6r
Frequently asked questions
What is CVE-2023-23931?
Is CVE-2023-23931 actively exploited?
What is the CVSS score for CVE-2023-23931?
Running cryptography? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-w7pp-m8wf-vj6r
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0