UBUNTU-CVE-2023-23931 (CVE-2023-23931)
Vulnerability from osv_ubuntu – Published: 2023-02-07 21:15 – Updated: 2026-09-17 16:14 – Source websitecryptography 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.
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "python-cryptography",
"binary_version": "2.1.4-1ubuntu1.4+esm6"
},
{
"binary_name": "python3-cryptography",
"binary_version": "2.1.4-1ubuntu1.4+esm6"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "python-cryptography",
"purl": "pkg:deb/ubuntu/python-cryptography@2.1.4-1ubuntu1.4+esm6?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.4-1ubuntu1.4+esm6"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.9-1",
"2.1.3-3",
"2.1.4-1",
"2.1.4-1build1",
"2.1.4-1build2",
"2.1.4-1ubuntu1",
"2.1.4-1ubuntu1.1",
"2.1.4-1ubuntu1.2",
"2.1.4-1ubuntu1.3",
"2.1.4-1ubuntu1.4",
"2.1.4-1ubuntu1.4+esm1",
"2.1.4-1ubuntu1.4+esm3"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "python-cryptography",
"binary_version": "2.8-3ubuntu0.2"
},
{
"binary_name": "python3-cryptography",
"binary_version": "2.8-3ubuntu0.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "python-cryptography",
"purl": "pkg:deb/ubuntu/python-cryptography@2.8-3ubuntu0.2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.8-3ubuntu0.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.6.1-3.1",
"2.6.1-4",
"2.6.1-4ubuntu1",
"2.8-1ubuntu2",
"2.8-2",
"2.8-3",
"2.8-3ubuntu0.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "python3-cryptography",
"binary_version": "3.4.8-1ubuntu2.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "python-cryptography",
"purl": "pkg:deb/ubuntu/python-cryptography@3.4.8-1ubuntu2.1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.4.8-1ubuntu2.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.3.2-1",
"3.3.2-1build1",
"3.4.8-1",
"3.4.8-1ubuntu1",
"3.4.8-1ubuntu2"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2023-23931",
"modified": "2026-09-17T16:14:06Z",
"published": "2023-02-07T21:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-23931"
},
{
"type": "REPORT",
"url": "https://github.com/pyca/cryptography/security/advisories/GHSA-w7pp-m8wf-vj6r"
},
{
"type": "REPORT",
"url": "https://github.com/pyca/cryptography/pull/8230/commits/94a50a9731f35405f0357fa5f3b177d46a726ab3"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6539-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-23931"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8776-1"
}
],
"related": [
"USN-6539-1",
"USN-8776-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L",
"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_V3"
},
{
"score": "low",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-23931"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.