python-cryptography — security advisory
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.
- Products
- python-cryptography
- Affected versions
- Not specified
- Fixed versions
- 38.0.4-3
- CVEs
- CVE-2023-23931
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:32 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2023-23931
python-cryptography
Fixed versions: 38.0.4-3
python-cryptography
Fixed versions: 38.0.4-3
python-cryptography
Fixed versions: 38.0.4-3
Complete source record
{
"id": "cbce0874ada828ed47fcf0f2caa3353ec97014316e5a0c8c9ee2792951000c88",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-23931",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-23931",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2023-23931",
"products": [
{
"name": {
"value": "python-cryptography",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "38.0.4-3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "python-cryptography",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "38.0.4-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "python-cryptography",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "38.0.4-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2023-23931",
"aliases": [
"DEBIAN-CVE-2023-23931"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "38.0.4-3"
}
]
}
],
"package": {
"name": "python-cryptography",
"purl": "pkg:deb/debian/python-cryptography?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-23931.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "38.0.4-3"
}
]
}
],
"package": {
"name": "python-cryptography",
"purl": "pkg:deb/debian/python-cryptography?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-23931.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "38.0.4-3"
}
]
}
],
"package": {
"name": "python-cryptography",
"purl": "pkg:deb/debian/python-cryptography?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-23931.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:01:00.859205315Z",
"provider": "osv",
"upstream": [
"CVE-2023-23931"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-23931"
]
},
"related_cves": [
{
"value": "CVE-2023-23931",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 455286,
"published_at": "2023-02-07T21:15:09.85+00:00"
}