Medium
Shim: out-of-bounds read printing error messages
Type: advisorySources: OSV
A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new variable, it tries to print an error message to the user; however, the number of parameters used by the logging function doesn't match the format string used by it, leading to a crash under certain circumstances.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-40546
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:45 UTC · Revision 1
Source evidence
Shim: out-of-bounds read printing error messages
core-osv · Original sourcePublished 29 Jan 2024, 16:29 UTC
A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new variable, it tries to print an error message to the user; however, the number of parameters used by the logging function doesn't match the format string used by it, leading to a crash under certain circumstances.
osv:CVE-2023-40546
Complete source record
{
"id": "315c7e3c0cbf9191bb59a2e319c566ebd3cb114a30b5cd8a56263c607b194465",
"url": "https://osv.dev/vulnerability/CVE-2023-40546",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Shim: out-of-bounds read printing error messages",
"summary": "A flaw was found in Shim when an error happened while creating a new ESL variable. If Shim fails to create the new variable, it tries to print an error message to the user; however, the number of parameters used by the logging function doesn't match the format string used by it, leading to a crash under certain circumstances.",
"evidence": "osv:CVE-2023-40546",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-40546",
"aliases": [
"CVE-2023-40546"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rhboot/shim",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5914984a1ffeab841f482c791426d7ca9935a5e6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "15.8"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"15.7",
"15.6",
"15.6-rc2",
"15.5",
"15.5-rc2",
"15.4",
"15.3",
"shim-15.3-rc4",
"shim-15.3-rc3",
"shim-15.3-rc2",
"shim-15.3-rc1",
"15.2",
"15",
"14",
"13",
"12",
"11",
"0.9",
"0.8",
"0.7",
"0.5",
"0.4",
"0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40546.json"
}
}
],
"modified": "2026-10-28T02:30:38.139474483Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html",
"https://access.redhat.com/errata/RHSA-2024:1834",
"https://access.redhat.com/errata/RHSA-2024:1835",
"https://access.redhat.com/errata/RHSA-2024:1873",
"https://access.redhat.com/errata/RHSA-2024:1876",
"https://access.redhat.com/errata/RHSA-2024:1883",
"https://access.redhat.com/errata/RHSA-2024:1902",
"https://access.redhat.com/errata/RHSA-2024:1903",
"https://access.redhat.com/errata/RHSA-2024:1959",
"https://access.redhat.com/errata/RHSA-2024:2086",
"https://access.redhat.com/security/cve/CVE-2023-40546",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40546.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-40546",
"https://bugzilla.redhat.com/show_bug.cgi?id=2241796"
],
"provider_metadata": {
"cwe_ids": [
"CWE-476"
],
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:15.8-3.el7"
},
{
"fixed": "0:15.8-1.el7"
},
{
"fixed": "0:15.8-4.el8_9"
},
{
"fixed": "0:15.8-2.el8_2"
},
{
"fixed": "0:15.8-2.el8_2"
},
{
"fixed": "0:15.8-2.el8_2"
},
{
"fixed": "0:15.8-2.el8_4"
},
{
"fixed": "0:15.8-2.el8_4"
},
{
"fixed": "0:15.8-2.el8_4"
},
{
"fixed": "0:15.8-2.el8_6"
},
{
"fixed": "0:15.8-2.el8"
},
{
"fixed": "0:15.8-2.el8"
},
{
"fixed": "0:15.8-4.el9_3"
},
{
"fixed": "0:15.8-3.el9"
},
{
"fixed": "0:15.8-2.el9"
},
{
"fixed": "0:15.8-2.el9"
},
{
"fixed": "0:15.8-3.el9_2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40546.json"
}
},
"related_cves": [
{
"value": "CVE-2023-40546",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505457,
"published_at": "2024-01-29T16:29:26.258+00:00"
}