Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Cryptography.Io | Cryptography | >= 1.8, < 39.0.1 |
Related Weaknesses (CWE)
References
- https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5fPatch
- https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6rExploitVendor Advisory
- https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5fPatch
- https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6rExploitVendor Advisory
- https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
- https://security.netapp.com/advisory/ntap-20230324-0007/
FAQ
What is CVE-2023-23931?
CVE-2023-23931 is a vulnerability with a CVSS score of 4.8 (MEDIUM). 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...
How severe is CVE-2023-23931?
CVE-2023-23931 has been rated MEDIUM with a CVSS base score of 4.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-23931?
Check the references section above for vendor advisories and patch information. Affected products include: Cryptography.Io Cryptography.