Vulnerabilityin pyca cryptography.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
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.
- Upgrade cryptography to 39.0.1 or later.
- Upgrade cryptography (PyPI) to 39.0.1 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Jan 2023CVE ID reserved by GitHub_M.
- 7 Feb 2023Published in the CVE List.
- 3 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other cryptography vulnerabilities
Same weakness: Improper check for unusual conditions
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- security.netapp.com
- lists.debian.org
Patchminder. CVE-2023-23931: Vulnerability in pyca cryptography. https://patchminder.com/cve/cve-2023-23931/ (accessed 5 December 2026).