# CVE-2023-40546: Shim: out-of-bounds read printing error messages

- Severity: Medium 6.2 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2024-01-29T16:29:26.258Z
- Modified: 2026-06-17T06:18:24.177Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- shim: no versions given (not affected: from 0:15.8-3.el7 before *; from 0:15.8-4.el8_9 before *; from 0:15.8-2.el8_2 before *; from 0:15.8-2.el8_4 before *; from 0:15.8-2.el8_6 before *; from 0:15.8-2.el8 before *; from 0:15.8-4.el9_3 before *; from 0:15.8-3.el9 before *; from 0:15.8-3.el9_2 before *)
- shim-signed: no versions given (not affected: from 0:15.8-1.el7 before *)
- shim-unsigned-x64: no versions given (not affected: from 0:15.8-2.el8 before *; from 0:15.8-2.el9 before *)
- shim-unsigned-aarch64: no versions given (not affected: from 0:15.8-2.el9 before *)
- redhat shim: before 15.8
- fedoraproject fedora: 39
- redhat enterprise_linux: 8.0; 9.0

## Every score

- redhat: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2024:1834> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1835> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1873> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1876> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1883> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1902> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1903> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:1959> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:2086> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-40546> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2241796> (issue-tracking, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html>

## Sources

- CVE List: [CVE-2023-40546](https://www.cve.org/CVERecord?id=CVE-2023-40546), CVE Terms of Use, modified 2025-11-20
- NVD: [CVE-2023-40546](https://nvd.nist.gov/vuln/detail/CVE-2023-40546), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40546 · Whole record: https://cve.day/CVE-2023-40546.json · Rebuilt by cve.day 2026-11-25T22:58:32.279Z
