CVE-2023-23931Cryptography.io Cryptography
Medium 6.5 No auth needed
Follow: this CVE · Cryptography.io · Cryptography.io Cryptography We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Feb 7, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-754
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Cryptography.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | cryptography |
≥ 1.8 < 39.0.1 |
39.0.1 |
pip install "cryptography>=39.0.1" |
| PyPI | cryptography |
≥ 1.8 < 39.0.1 |
39.0.1 |
pip install "cryptography>=39.0.1" |
Per OSV / GitHub Advisories (GHSA-w7pp-m8wf-vj6r, PYSEC-2023-11). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cryptography.io | cryptography | ≥ 1.8 < 39.0.1 |
Official advisories
- python313-oci-sdk-2.180.0-1.2 on GA media · SUSE · openSUSE-SU-2026:12020-1 · Oct 4, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory
- lists.debian.org
- security.netapp.com