CVE-2023-23931
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_MCVSS: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
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:47.935Z | CVE Program |
| epss | verified | 2026-11-19T16:04:35.920Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:02.630Z | OSV |
| affected | verified | 2026-11-19T12:56:47.935Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:47.935Z | CVE 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 JSONOSV · 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 JSONOSV · 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 JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | cryptography | Not a distribution channel | 39.0.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:02.630ZArchived source JSON
Source publication: 2023-02-07T20:54:10.000Z
Source modification: 2026-09-10T03:49:52.124ZDocument fingerprint
f63ca43f6d59de8d8094f6d85f82bdcbc431605aa0b008f9f57a585e04f62d57 - OSVConsulted: 2026-11-19T12:52:02.630ZArchived source JSON
Source publication: 2023-02-07T21:15:00.000Z
Source modification: 2026-02-22T22:48:42.243ZDocument fingerprint
f63ca43f6d59de8d8094f6d85f82bdcbc431605aa0b008f9f57a585e04f62d57 - CVE ProgramConsulted: 2026-11-19T12:56:47.935ZArchived source JSON
Source publication: 2023-02-07T20:54:03.628Z
Source modification: 2025-11-03T21:47:19.856ZDocument fingerprint
a0f041a9a52ecc670f4a9816232f63c71b1a1a6a50f1cf56b787b66fb86454c6 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:35.920ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
e984bc4a8ff3b06285e2eddb70222ac8a60d7c809f73be8fc1d22065f95250ad
Official status history
- UNKNOWN → PUBLISHED · · evidence