ADVISORIES

Vulnerability

CVE-2023-23931

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.

48 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2023-2023-459

    Amazon Linux 2023 - ALAS2023-2023-459: Medium priority package update for python-cryptography

    Medium CVE-2023-23931 Amazon Linux Updated 14 December 2023
  • ALPINE-CVE-2023-23931

    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…

    CVE-2023-23931 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2023-23931
    CVE-2023-23931 Alpine Updated 18 November 2026
  • ALSA-2023:6615

    Moderate: python-cryptography security update

    CVE-2023-23931 AlmaLinux Updated 29 October 2026
  • ALSA-2023:7096

    Moderate: python-cryptography security update

    CVE-2023-23931 AlmaLinux Updated 29 October 2026
  • ALSA-2024:2985

    Moderate: python39:3.9 and python39-devel:3.9 security update

    CVE-2022-40897CVE-2023-23931CVE-2023-27043CVE-2023-43804 AlmaLinux Updated 29 October 2026
  • AZL-13353

    CVE-2023-23931 affecting package python-cryptography for versions less than 3.3.2-4

    CVE-2023-23931 Azure Linux Updated 21 April 2026
  • AZL-35127

    CVE-2023-23931 affecting package python-cryptography for versions less than 3.3.2-5

    CVE-2023-23931 Azure Linux Updated 21 April 2026
  • CGA-733r-4jj6-9rf3
    CVE-2023-23931 ChainguardWolfi Updated 5 November 2026
  • CGA-pvfh-5xh2-6xcc
    CVE-2023-23931 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-23931

    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…

    CVE-2023-23931 Debian Updated 26 October 2026
  • DLA-3331-1

    python-cryptography - security update

    CVE-2023-23931 Debian Updated 20 November 2026
  • DLA-3331-2

    python-cryptography - regression update

    CVE-2023-23931 Debian Updated 20 November 2026
  • DLA-3922-1

    python-cryptography - security update

    CVE-2023-23931CVE-2023-49083 Debian Updated 20 November 2026
  • ELSA-2023-6615

    ELSA-2023-6615: python-cryptography security update (MODERATE)

    Moderate CVE-2023-23931 Oracle Linux Updated 11 November 2023
  • ELSA-2023-7096

    ELSA-2023-7096: python-cryptography security update (MODERATE)

    Moderate CVE-2023-23931 Oracle Linux Updated 17 November 2023
  • ELSA-2024-2985

    ELSA-2024-2985: python39:3.9 and python39-devel:3.9 security update (MODERATE)

    Moderate CVE-2022-40897CVE-2023-23931CVE-2023-27043CVE-2023-43804 Oracle Linux Updated 24 May 2024
  • GHSA-w7pp-m8wf-vj6r

    Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf

    Moderate CVE-2023-23931 PyPI Updated 10 September 2026
  • OESA-2023-1085

    python-cryptography security update

    Medium CVE-2023-23931 openEuler Updated 18 August 2026
  • OESA-2023-1088

    python-cryptography security update

    Medium CVE-2023-23931 openEuler Updated 18 August 2026
  • OESA-2023-1090

    python-cryptography security update

    Medium CVE-2023-23931 openEuler Updated 18 August 2026
  • OESA-2023-1113

    python-cryptography security update

    Medium CVE-2023-23931 openEuler Updated 18 August 2026
  • PYSEC-2023-11

    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…

    CVE-2023-23931 PyPI Updated 22 February 2026
  • RHSA-2023:4693

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2023-23931CVE-2023-32681CVE-2023-36053CVE-2023-4380 Red Hat Updated 13 November 2026
  • RHSA-2023:4971

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2023-23931CVE-2023-40267 Red Hat Updated 13 November 2026
  • RHSA-2023:6615

    Red Hat Security Advisory: python-cryptography security update

    CVE-2023-23931 Red Hat Updated 13 November 2026
  • RHSA-2023:6793

    Red Hat Security Advisory: rh-python38-python security update

    CVE-2007-4559CVE-2022-40897CVE-2022-40898CVE-2022-45061 Red Hat Updated 23 November 2026
  • RHSA-2023:7096

    Red Hat Security Advisory: python-cryptography security update

    CVE-2023-23931 Red Hat Updated 13 November 2026
  • RHSA-2024:2985

    Red Hat Security Advisory: python39:3.9 and python39-devel:3.9 security update

    CVE-2022-40897CVE-2023-23931CVE-2023-27043CVE-2023-43804 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2023-23931

    python-cryptography: memory corruption via immutable objects

    Moderate CVE-2023-23931 Red Hat Updated 7 November 2026
  • RLSA-2024:2985

    Moderate: python39:3.9 and python39-devel:3.9 security update

    CVE-2022-40897CVE-2023-23931CVE-2023-27043CVE-2023-43804 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2023:0722-1

    Security update for python-cryptography

    CVE-2023-23931 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:0722-2

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:0737-1

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:0837-1

    Security update for python-cffi

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:0838-1

    Security update for python-cffi

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:0839-1

    Security update for python-cffi

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:1763-1

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:1767-1

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:2144-1

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSE-SU-2023:2218-1

    Security update for python-cryptography

    CVE-2023-23931 SUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-23931

    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…

    Moderate CVE-2023-23931 SUSE Updated 17 October 2026
  • UBUNTU-CVE-2023-23931

    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…

    CVE-2023-23931 Ubuntu Updated 17 September 2026
  • USN-6539-1

    python-cryptography vulnerabilities

    CVE-2023-23931CVE-2023-49083 Ubuntu Updated 27 April 2026
  • USN-8776-1

    python-cryptography vulnerabilities

    CVE-2023-23931CVE-2026-69247CVE-2026-69248CVE-2026-69249 Ubuntu Updated 17 September 2026
  • openSUSE-SU-2024:12681-1

    python310-cryptography-39.0.1-1.1 on GA media

    CVE-2023-23931 openSUSE Updated 7 May 2025
  • openSUSE-SU-2025:14739-1

    python311-cryptography-44.0.0-1.1 on GA media

    CVE-2022-3602CVE-2022-3786CVE-2023-23931 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:12020-1

    python313-oci-sdk-2.180.0-1.2 on GA media

    CVE-2023-23931 openSUSE Updated 5 October 2026

References