CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2023-23931

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.8 · medium

Cipher.update_into can corrupt memory in pyca cryptography

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.315% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.8 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Assessment source · checked 2026-11-19T12:56:47.935Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:56:47.935ZCVE Program
epssverified2026-11-19T16:04:35.920ZFIRST EPSS
patchesverified2026-11-19T12:52:02.630ZOSV
affectedverified2026-11-19T12:56:47.935ZCVE Program
lifecycleverified2026-11-19T12:56:47.935ZCVE Program

Affected versions and configuration

pyca cryptography; default status: unknown: >=1.8, < 39.0.1 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "pyca",
      "product": "cryptography",
      "versions": [
        {
          "status": "affected",
          "version": ">=1.8, < 39.0.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://security.netapp.com/advisory/ntap-20230324-0007/"
        },
        {
          "url": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r",
          "name": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3",
          "name": "https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html"
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2025-11-03T21:47:19.856Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2023-23931",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-03-10T21:01:11.762140Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-03-10T21:15:21.787Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-w7pp-m8wf-vj6r",
  "aliases": [
    "CVE-2023-23931",
    "PYSEC-2023-11"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "1.8"
            },
            {
              "fixed": "39.0.1"
            }
          ]
        }
      ],
      "package": {
        "name": "cryptography",
        "purl": "pkg:pypi/cryptography",
        "ecosystem": "PyPI"
      },
      "versions": [
        "1.8",
        "1.8.1",
        "1.8.2",
        "1.9",
        "2.0",
        "2.0.1",
        "2.0.2",
        "2.0.3",
        "2.1",
        "2.1.1",
        "2.1.2",
        "2.1.3",
        "2.1.4",
        "2.2",
        "2.2.1",
        "2.2.2",
        "2.3",
        "2.3.1",
        "2.4",
        "2.4.1",
        "2.4.2",
        "2.5",
        "2.6",
        "2.6.1",
        "2.7",
        "2.8",
        "2.9",
        "2.9.1",
        "2.9.2",
        "3.0",
        "3.1",
        "3.1.1",
        "3.2",
        "3.2.1",
        "3.3",
        "3.3.1",
        "3.3.2",
        "3.4",
        "3.4.1",
        "3.4.2",
        "3.4.3",
        "3.4.4",
        "3.4.5",
        "3.4.6",
        "3.4.7",
        "3.4.8",
        "35.0.0",
        "36.0.0",
        "36.0.1",
        "36.0.2",
        "37.0.0",
        "37.0.1",
        "37.0.2",
        "37.0.3",
        "37.0.4",
        "38.0.0",
        "38.0.1",
        "38.0.2",
        "38.0.3",
        "38.0.4",
        "39.0.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-w7pp-m8wf-vj6r/GHSA-w7pp-m8wf-vj6r.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
    },
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-23931",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/pyca/cryptography/pull/8230",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pyca/cryptography/commit/d6951dca25de45abd52da51b608055371fbcde4e",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pyca/cryptography",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-11.yaml",
      "type": "WEB"
    },
    {
      "url": "https://lists.debian.org/debian-lts-announce/2024/10/msg00012.html",
      "type": "WEB"
    },
    {
      "url": "https://security.netapp.com/advisory/ntap-20230324-0007",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-754"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2023-02-07T21:15:00Z",
    "github_reviewed_at": "2023-02-07T20:54:10Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "PYSEC-2023-11",
  "aliases": [
    "CVE-2023-23931",
    "GHSA-w7pp-m8wf-vj6r"
  ],
  "affected": [
    {
      "ranges": [
        {
          "repo": "https://github.com/pyca/cryptography",
          "type": "GIT",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "94a50a9731f35405f0357fa5f3b177d46a726ab3"
            }
          ]
        },
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "1.8"
            },
            {
              "fixed": "39.0.1"
            }
          ]
        }
      ],
      "package": {
        "name": "cryptography",
        "purl": "pkg:pypi/cryptography",
        "ecosystem": "PyPI"
      },
      "versions": [
        "1.8",
        "1.8.1",
        "1.8.2",
        "1.9",
        "2.0",
        "2.0.1",
        "2.0.2",
        "2.0.3",
        "2.1",
        "2.1.1",
        "2.1.2",
        "2.1.3",
        "2.1.4",
        "2.2",
        "2.2.1",
        "2.2.2",
        "2.3",
        "2.3.1",
        "2.4",
        "2.4.1",
        "2.4.2",
        "2.5",
        "2.6",
        "2.6.1",
        "2.7",
        "2.8",
        "2.9",
        "2.9.1",
        "2.9.2",
        "3.0",
        "3.1",
        "3.1.1",
        "3.2",
        "3.2.1",
        "3.3",
        "3.3.1",
        "3.3.2",
        "3.4",
        "3.4.1",
        "3.4.2",
        "3.4.3",
        "3.4.4",
        "3.4.5",
        "3.4.6",
        "3.4.7",
        "3.4.8",
        "35.0.0",
        "36.0.0",
        "36.0.1",
        "36.0.2",
        "37.0.0",
        "37.0.1",
        "37.0.2",
        "37.0.3",
        "37.0.4",
        "38.0.0",
        "38.0.1",
        "38.0.2",
        "38.0.3",
        "38.0.4",
        "39.0.0"
      ],
      "database_specific": {
        "source": "https://github.com/pypa/advisory-database/blob/main/vulns/cryptography/PYSEC-2023-11.yaml"
      }
    }
  ],
  "severity": [],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r",
      "type": "EVIDENCE"
    },
    {
      "url": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3",
      "type": "FIX"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPyPI / packagecryptographyNot a distribution channel39.0.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history