Generated remediation guidance and an executive summary. No account required.
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.
Cite this page
CVE-2023-23931. CVEDatabase.com. Retrieved 1 May 2026. https://cvedatabase.com/cve/CVE-2023-23931
Use CWE-754, Cryptography.Io vendor hub and Cryptography product page to widen CVE-2023-23931 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2020-36242, CVE-2026-26007 and CVE-2024-26130 for nearby disclosures in the same product family.