Skip to main content
← All vulnerabilities
CVE-2023-23931PYSEC-2023-11GHSA-W7PP-M8WF-VJ6R

Cipher.update_into can corrupt memory in pyca cryptography

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 39.0.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pyca cryptography

    From 1.8 · fixed in 39.0.1

  • cryptographyPyPI

    From 1.8 · fixed in 39.0.1

References 2

GitHub · pyca/cryptography