{"api_version":"1","generated_at":"2026-04-22T22:50:38+00:00","cve":"CVE-2023-23931","urls":{"html":"https://cve.report/CVE-2023-23931","api":"https://cve.report/api/cve/CVE-2023-23931.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-23931","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-23931"},"summary":{"title":"CVE-2023-23931","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-02-07 21:15:00","updated_at":"2023-02-16 16:57:00"},"problem_types":["CWE-754"],"metrics":[],"references":[{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r","name":"https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r","refsource":"MISC","tags":[],"title":"Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf · Advisory · pyca/cryptography · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3","name":"https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3","refsource":"MISC","tags":[],"title":"Don't allow update_into to mutate immutable objects by alex · Pull Request #8230 · pyca/cryptography · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-23931","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23931","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"23931","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"cryptography_project","cpe5":"cryptography","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-23931","qid":"161077","title":"Oracle Enterprise Linux Security Update for python-cryptography (ELSA-2023-6615)"},{"cve":"CVE-2023-23931","qid":"161161","title":"Oracle Enterprise Linux Security Update for python-cryptography (ELSA-2023-7096)"},{"cve":"CVE-2023-23931","qid":"181601","title":"Debian Security Update for python-cryptography (DLA 3331-1)"},{"cve":"CVE-2023-23931","qid":"181614","title":"Debian Security Update for python-cryptography (DLA 3331-2)"},{"cve":"CVE-2023-23931","qid":"184595","title":"Debian Security Update for python-cryptography (CVE-2023-23931)"},{"cve":"CVE-2023-23931","qid":"199984","title":"Ubuntu Security Notification for python-cryptography Vulnerability (USN-6539-1)"},{"cve":"CVE-2023-23931","qid":"20355","title":"Oracle Database 21c Critical Patch Update - July 2023"},{"cve":"CVE-2023-23931","qid":"242344","title":"Red Hat Update for rh-python38-python (RHSA-2023:6793)"},{"cve":"CVE-2023-23931","qid":"242403","title":"Red Hat Update for python-cryptography (RHSA-2023:6615)"},{"cve":"CVE-2023-23931","qid":"242438","title":"Red Hat Update for python-cryptography (RHSA-2023:7096)"},{"cve":"CVE-2023-23931","qid":"283749","title":"Fedora Security Update for python (FEDORA-2023-fa5d0b461d)"},{"cve":"CVE-2023-23931","qid":"283775","title":"Fedora Security Update for python (FEDORA-2023-672f668f51)"},{"cve":"CVE-2023-23931","qid":"284276","title":"Fedora Security Update for python (FEDORA-2023-749dd47c79)"},{"cve":"CVE-2023-23931","qid":"296099","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 57.144.3 Missing (CPUAPR2023)"},{"cve":"CVE-2023-23931","qid":"356791","title":"Amazon Linux Security Advisory for python-cryptography : ALAS2023-2023-459"},{"cve":"CVE-2023-23931","qid":"502918","title":"Alpine Linux Security Update for py3-cryptography"},{"cve":"CVE-2023-23931","qid":"503223","title":"Alpine Linux Security Update for py3-cryptography"},{"cve":"CVE-2023-23931","qid":"506172","title":"Alpine Linux Security Update for py3-cryptography"},{"cve":"CVE-2023-23931","qid":"672922","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-1809)"},{"cve":"CVE-2023-23931","qid":"672956","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-1827)"},{"cve":"CVE-2023-23931","qid":"673180","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-2340)"},{"cve":"CVE-2023-23931","qid":"673201","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-2320)"},{"cve":"CVE-2023-23931","qid":"673376","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-2706)"},{"cve":"CVE-2023-23931","qid":"673465","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2024-1293)"},{"cve":"CVE-2023-23931","qid":"673855","title":"EulerOS Security Update for python-cryptography (EulerOS-SA-2023-2664)"},{"cve":"CVE-2023-23931","qid":"691144","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py (a32ef450-9781-414b-a944-39f2f61677f2)"},{"cve":"CVE-2023-23931","qid":"753796","title":"SUSE Enterprise Linux Security Update for python-cryptography (SUSE-SU-2023:0737-1)"},{"cve":"CVE-2023-23931","qid":"753831","title":"SUSE Enterprise Linux Security Update for python-cffi (SUSE-SU-2023:0837-1)"},{"cve":"CVE-2023-23931","qid":"753887","title":"SUSE Enterprise Linux Security Update for python-cryptography (SUSE-SU-2023:1763-1)"},{"cve":"CVE-2023-23931","qid":"753893","title":"SUSE Enterprise Linux Security Update for python-cryptography (SUSE-SU-2023:1767-1)"},{"cve":"CVE-2023-23931","qid":"905448","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13330)"},{"cve":"CVE-2023-23931","qid":"905466","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13353)"},{"cve":"CVE-2023-23931","qid":"905616","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13353-1)"},{"cve":"CVE-2023-23931","qid":"905658","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13330-1)"},{"cve":"CVE-2023-23931","qid":"906588","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13330-3)"},{"cve":"CVE-2023-23931","qid":"906677","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-cryptography (13353-3)"},{"cve":"CVE-2023-23931","qid":"941413","title":"AlmaLinux Security Update for python-cryptography (ALSA-2023:6615)"},{"cve":"CVE-2023-23931","qid":"941460","title":"AlmaLinux Security Update for python-cryptography (ALSA-2023:7096)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-23931","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-754: Improper Check for Unusual or Exceptional Conditions","cweId":"CWE-754"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"pyca","product":{"product_data":[{"product_name":"cryptography","version":{"version_data":[{"version_value":">=1.8, < 39.0.1","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r","refsource":"MISC","name":"https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r"},{"url":"https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3","refsource":"MISC","name":"https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3"}]},"source":{"advisory":"GHSA-w7pp-m8wf-vj6r","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":4.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2023-02-07 21:15:00","lastModifiedDate":"2023-02-16 16:57:00","problem_types":["CWE-754"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":2.5}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:cryptography_project:cryptography:*:*:*:*:*:python:*:*","versionStartIncluding":"1.8","versionEndExcluding":"39.0.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}