py3-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
- py3-cryptography
- Affected versions
- Not specified
- Fixed versions
- 39.0.1-r0
- CVEs
- CVE-2023-23931
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 14:55 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:ALPINE-CVE-2023-23931
py3-cryptography
Fixed versions: 39.0.1-r0
py3-cryptography
Fixed versions: 39.0.1-r0
Complete source record
{
"id": "c24ff5a6fcfa4b540c8bdf94406c7f53edb99bfb7df78d3b78b381358096aa0e",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2023-23931",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-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:ALPINE-CVE-2023-23931",
"products": [
{
"name": {
"value": "py3-cryptography",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "39.0.1-r0",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "py3-cryptography",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "39.0.1-r0",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "ALPINE-CVE-2023-23931",
"aliases": [
"ALPINE-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": "1.8"
},
{
"fixed": "39.0.1-r0"
}
]
}
],
"package": {
"name": "py3-cryptography",
"purl": "pkg:apk/alpine/py3-cryptography?arch=source",
"ecosystem": "Alpine:v3.23"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-23931.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.8"
},
{
"fixed": "39.0.1-r0"
}
]
}
],
"package": {
"name": "py3-cryptography",
"purl": "pkg:apk/alpine/py3-cryptography?arch=source",
"ecosystem": "Alpine:v3.24"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-23931.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-26T17:17:58.610837113Z",
"provider": "osv",
"upstream": [
"CVE-2023-23931"
],
"references": [
"https://security.alpinelinux.org/vuln/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": 454384,
"published_at": "2023-02-07T21:15:09.85+00:00"
}