Vulnerability · Published Jan 25, 2024 · Assigned by redhat
CVE-2023-40547Shim: rce in http boot support may lead to secure boot bypass
High 8.3
In plain English
A high-severity out-of-bounds write in Red Hat Enterprise Linux 7 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.4% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A remote code execution vulnerability was found in Shim. The Shim boot support trusts attacker-controlled values when parsing an HTTP response. This flaw allows an attacker to craft a specific malicious HTTP request, leading to a completely controlled out-of-bounds write primitive and complete system compromise. This flaw is only exploitable during the early boot phase, an attacker needs to perform a Man-in-the-Middle or compromise the boot server to be able to exploit this vulnerability successfully.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | shim-aa64 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:9 | shim-aa64 | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| AlmaLinux:8 | shim-ia32 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:8 | shim-x64 | 15.8-4.el8_9.alma.1 | ALSA-2024:1902 |
| AlmaLinux:9 | shim-x64 | 15.8-4.el9_3.alma.1 | ALSA-2024:1903 |
| Debian:12 | shim | 15.8-1~deb12u1 | DEBIAN-CVE-2023-40547 |
| Debian:13 | shim | 15.8-1 | DEBIAN-CVE-2023-40547 |
| Debian:14 | shim | 15.8-1 | DEBIAN-CVE-2023-40547 |
| Ubuntu:22.04:LTS | shim | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40547 |
| Ubuntu:24.04:LTS | shim | 15.8-0ubuntu1 | UBUNTU-CVE-2023-40547 |
| Ubuntu:22.04:LTS | shim-signed | 1.51.4 | UBUNTU-CVE-2023-40547 |
| Ubuntu:24.04:LTS | shim-signed | 1.58 | UBUNTU-CVE-2023-40547 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- RHSA-2024:1834 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1835 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1873 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1876 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1883 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1902 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1903 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:1959 vendor-advisory, x_refsource_REDHAT
- RHSA-2024:2086 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2023-40547 vdb-entry, x_refsource_REDHAT
- RHBZ#2234589 issue-tracking, x_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2024/01/26/1 x_transferred
- https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html x_transferred