{"cve":"CVE-2023-23931","nvd":{"published":"2023-02-07T21:15:09.850","modified":"2026-06-17T05:38:18.920","status":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5},"cwes":["CWE-754"],"references":["https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3","https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r","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"],"products":["cryptography.io:cryptography"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-23931","score":0.01301,"percentile":0.70469,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-w7pp-m8wf-vj6r","url":"https://osv.dev/vulnerability/GHSA-w7pp-m8wf-vj6r","summary":"Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf","modified":"2026-09-10T03:49:52.124485319Z","packages":[{"ecosystem":"PyPI","name":"cryptography","purl":"pkg:pypi/cryptography","ranges":[">=1.8 <39.0.1"],"fixed":["39.0.1"]}]},{"id":"PYSEC-2023-11","url":"https://osv.dev/vulnerability/PYSEC-2023-11","summary":"","modified":"2026-02-22T22:48:42.243064Z","packages":[{"ecosystem":"PyPI","name":"cryptography","purl":"pkg:pypi/cryptography","ranges":[">=1.8 <39.0.1"],"fixed":["39.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}