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.

Project Subscriptions

Vendors Products
Cryptography.io Subscribe
Cryptography Subscribe
Ansible Automation Platform Subscribe
Enterprise Linux Subscribe
Rhel Software Collections Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-3331-1 python-cryptography security update
Debian DLA Debian DLA DLA-3331-2 python-cryptography security update
Debian DLA Debian DLA DLA-3922-1 python-cryptography security update
EUVD EUVD EUVD-2023-0058 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.
Github GHSA Github GHSA GHSA-w7pp-m8wf-vj6r Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf
Ubuntu USN Ubuntu USN USN-6539-1 python-cryptography vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 03 Nov 2025 22:30:00 +0000

Type Values Removed Values Added
References

Mon, 10 Mar 2025 22:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 22 Nov 2024 12:00:00 +0000

Type Values Removed Values Added
References

Thu, 05 Sep 2024 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Cryptography.io
Cryptography.io cryptography
CPEs cpe:2.3:a:cryptography_project:cryptography:*:*:*:*:*:python:*:* cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*
Vendors & Products Cryptography Project
Cryptography Project cryptography
Cryptography.io
Cryptography.io cryptography

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-11-03T21:47:19.856Z

Reserved: 2023-01-19T21:12:31.360Z

Link: CVE-2023-23931

cve-icon Vulnrichment

Updated: 2025-11-03T21:47:19.856Z

cve-icon NVD

Status : Modified

Published: 2023-02-07T21:15:09.850

Modified: 2025-11-03T22:16:05.153

Link: CVE-2023-23931

cve-icon Redhat

Severity : Moderate

Publid Date: 2023-02-08T00:00:00Z

Links: CVE-2023-23931 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses