CVE-2023-23931
MEDIUM
Published Feb 7, 20233y ago · Modified Jun 17, 20262w ago
6.5 CVSS 3.1
Published Feb 7, 2023 3y ago
Last Modified Jun 17, 2026 2w ago
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity Low
Availability Low
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-754
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| cryptography.io | cryptography | * | ≥1.8 – <39.0.1 |
References 4
- github.com https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3
- github.com https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html
- security.netapp.com https://security.netapp.com/advisory/ntap-20230324-0007/
Remediation
- github.com https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3