shim — security advisory
A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a user-controlled value parsed from the PE binary being used by Shim. This value is further used for memory allocation operations, leading to a heap-based buffer overflow. This flaw causes memory corruption and can lead to a crash or data integrity issues during the boot phase.
- Products
- shim
- Affected versions
- 15.7-1, 15.8-1~deb10u1, 15.8-1~deb11u1
- Fixed versions
- 15.8-1, 15.8-1~deb12u1
- CVEs
- CVE-2023-40548
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:57 UTC · Revision 1
Source evidence
A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a user-controlled value parsed from the PE binary being used by Shim. This value is further used for memory allocation operations, leading to a heap-based buffer overflow. This flaw causes memory corruption and can lead to a crash or data integrity issues during the boot phase.
osv:DEBIAN-CVE-2023-40548
shim
Fixed versions: 15.8-1~deb12u1
shim
Fixed versions: 15.8-1
shim
Fixed versions: 15.8-1
Complete source record
{
"id": "5cba753f2464af44722b86279a47f7eae69cf50f685bfa4aec10d1176c35e1e7",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-40548",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-40548",
"summary": "A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a user-controlled value parsed from the PE binary being used by Shim. This value is further used for memory allocation operations, leading to a heap-based buffer overflow. This flaw causes memory corruption and can lead to a crash or data integrity issues during the boot phase.",
"evidence": "osv:DEBIAN-CVE-2023-40548",
"products": [
{
"name": {
"value": "shim",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "15.8-1~deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "15.7-1",
"evidence": "/affected/0/versions"
},
{
"value": "15.8-1~deb10u1",
"evidence": "/affected/0/versions"
},
{
"value": "15.8-1~deb11u1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "shim",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "15.8-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "shim",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "15.8-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2023-40548",
"aliases": [
"DEBIAN-CVE-2023-40548"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "15.8-1~deb12u1"
}
]
}
],
"package": {
"name": "shim",
"purl": "pkg:deb/debian/shim?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"15.7-1",
"15.8-1~deb10u1",
"15.8-1~deb11u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40548.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "15.8-1"
}
]
}
],
"package": {
"name": "shim",
"purl": "pkg:deb/debian/shim?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40548.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "15.8-1"
}
]
}
],
"package": {
"name": "shim",
"purl": "pkg:deb/debian/shim?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40548.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:02:32.379263356Z",
"provider": "osv",
"upstream": [
"CVE-2023-40548"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-40548"
]
},
"related_cves": [
{
"value": "CVE-2023-40548",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 456204,
"published_at": "2024-01-29T15:15:08.893+00:00"
}