PT-2023-2766 · Pypi+10 · Cryptography+10

Alexp

·

Published

2023-02-07

·

Updated

2025-02-06

·

CVE-2023-23931

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions cryptography versions 1.8 through the latest version before the fix
Description The issue is related to the Cipher.update into function in the cryptography package, which would accept Python objects that implement the buffer protocol but provide only immutable buffers. This could allow immutable objects, such as bytes, to be mutated, violating fundamental rules of Python and resulting in corrupted output. The function now correctly raises an exception. This issue has been present since update into was originally introduced in cryptography 1.8.
Recommendations For cryptography versions 1.8 through the latest version before the fix, update to a version where the Cipher.update into function correctly raises an exception for immutable buffers. As a temporary workaround, consider avoiding the use of Cipher.update into with immutable objects until a patch is available. Restrict access to the Cipher.update into function to minimize the risk of exploitation. Avoid using immutable objects, such as bytes, with the Cipher.update into function until the issue is resolved.

Exploit

Fix

DoS

Improper Check for Exceptional Conditions

Weakness Enumeration

Related Identifiers

ALSA-2023:6615
ALSA-2023:7096
ALSA-2024:2985
ALT-PU-2023-1207
ALT-PU-2023-8071
ALT-PU-2023-8443
ALT-PU-2024-9926
AZL-13353
AZL-35127
BDU:2023-02656
CESA-2023_7096
CESA-2024_2985
CVE-2023-23931
DLA-3331-1
DLA-3331-2
DLA-3922-1
GHSA-W7PP-M8WF-VJ6R
INFSA-2023_6615
INFSA-2024_2985
MGASA-2023-0071
OESA-2023-1085
OESA-2023-1088
OESA-2023-1090
OESA-2023-1113
OPENSUSE-SU-2024:12681-1
OPENSUSE-SU-2024:12820-1
OPENSUSE-SU-2025:14739-1
PYSEC-2023-11
RHSA-2023:4693
RHSA-2023:4971
RHSA-2023:6615
RHSA-2023:6793
RHSA-2023:7096
RHSA-2023_6615
RHSA-2023_7096
RHSA-2024:2985
RHSA-2024_2985
RLSA-2024:2985
SUSE-SU-2023:0722-1
SUSE-SU-2023:0722-2
SUSE-SU-2023:0737-1
SUSE-SU-2023:0837-1
SUSE-SU-2023:0838-1
SUSE-SU-2023:0839-1
SUSE-SU-2023:1763-1
SUSE-SU-2023:1767-1
SUSE-SU-2023:2144-1
SUSE-SU-2023:2218-1
SUSE-SU-2023_0722-1
SUSE-SU-2023_0737-1
SUSE-SU-2023_0837-1
SUSE-SU-2023_1763-1
SUSE-SU-2023_1767-1
USN-6539-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Cryptography