Improper Check for Unusual or Exceptional Conditions
CVE-2023-23931
Summary
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 1.8 through 39.0.0, "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.
- LOW
- NETWORK
- LOW
- UNCHANGED
- NONE
- NONE
- NONE
- LOW
CWE-754 - Improper Check for Unusual or Exceptional Conditions
The software does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the software.
References
Advisory Timeline
- Published