
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (CVE-2023-23931) affects the Python cryptography package, which is designed to expose cryptographic primitives and recipes to Python developers. The issue was discovered in the Cipher.update_into function, which was introduced in cryptography version 1.8. The vulnerability was disclosed on February 7, 2023, affecting all versions from 1.8 until it was patched in version 39.0.1 (GitHub Advisory, NVD).
The vulnerability stems from the Cipher.update_into function accepting Python objects that implement the buffer protocol but only provide immutable buffers. This implementation flaw could allow the mutation of immutable objects (such as bytes), which violates fundamental rules of Python and can result in corrupted output. The vulnerability has a CVSS 3.1 base score of 6.5 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L (Ubuntu).
The exploitation of this vulnerability could lead to the corruption of memory when immutable Python objects are passed as the outbuf parameter. This results in corrupted output and potential violation of Python's fundamental rules regarding immutable objects. The impact primarily affects data integrity and could potentially cause application instability (GitHub Advisory).
The issue has been fixed in cryptography version 39.0.1 and later versions. The fix implements proper exception handling when immutable objects are passed to the update_into function. Users are advised to upgrade to the patched version. The fix ensures that an exception is raised when attempting to use immutable objects in this context (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."