CyberWatch

Remote Code Execution Vulnerability Found in Shim

By

By

Access Point Consulting

Summary

A vulnerability has been discovered in Shim, an open-source bootloader on UEFI systems for Linux distributions. The vulnerability, identified as CVE-2023-40547, is a remote code execution vulnerability found by Bill Demirkapi from the Microsoft Security Response Center. The vulnerability allows Shim to trust attacker-controlled values when parsing an HTTP response resulting in a man-in-the-middle attack early in the boot phase. The attacker can craft a malicious HTTP request, leading to a completely controlled out-of-bounds write primitive and complete system compromised as reported by Red Hat.

Impact Assessment

There is a substantial risk to confidentiality, integrity, and availability resulting from exploitation of this vulnerability. It can allow an attacker to gain complete system control, remotely, before the OS has had time to boot. The vulnerability can also be exploited through network-adjacent and local means.

Red Hat has identified that the Shim component of Red Hat Enterprise Linux 7, 8, and 9 are all affected by this vulnerability. However, due to the nature of this vulnerability affecting Shim, it should affect all Linux distributions which can utilize secure boot with Shim.

What It Means for You

If you utilize a Linux distribution with Shim, remediate.

Remediation

Update to Shim 15.8 through a fwupd firmware update on the command line.

Business Implications

Exploitation of this vulnerability can have devastating consequences on an organization. The vulnerability can allow for a full take-over of a system. This can cause monetary loss due to disaster recovery and business inefficiency and data being lost or compromised due to a system takeover and potential lateral movement.

Access Point Technology Recommends

Patch: Patching Shim to the latest version on all Linux distributions within your network will ultimately prevent this vulnerability from being exploited. Follow remediation steps in the link provided by running fwupd.

Segment network: It is possible to mitigate the exploitation by having proper network segmentation in place and utilizing a zero-trust model. This will help prevent lateral movement and allow for quick and effective action by an incident response team.

Incident response: Having an incident response plan and team is essential when an attacker is performing exploits on your network. Follow these incident response best practices from Atlassian to see where you are with your incident response.

Associated Bulletins

https://www.openwall.com/lists/oss-security/2024/01/26/1

https://github.com/rhboot/shim/commit/0226b56513b2b8bd5fd281bce77c40c9bf07c66d

https://nvd.nist.gov/vuln/detail/CVE-2023-40547#VulnChangeHistorySection

https://access.redhat.com/security/cve/CVE-2023-40547

Resources

Latest Resources

Resources

CyberWatch

April 2, 2025

Scott "Monty" Montgomery (Island) | Navigating CMMC compliance for organizations of every size

Scott Montgomery, known as Monty, joined the CyberWatch Expert Series podcast to discuss his extensive background in cybersecurity, particularly in building and designing network security tools for high-assurance environments like the Department of Defense (DoD) and the intelligence community. His experience includes significant tenure at McAfee (now Trellix), which led him to his current role at Island, where he focuses on innovative approaches to cybersecurity compliance.

Find out more
March 19, 2025

Michael Sviben (DomainGuard) | Defending against phishing and building proactive security awareness

Cybersecurity threats evolve rapidly, and one tactic consistently rises above the rest: phishing. In this episode of CyberWatch, Michael Sviben, co-founder of DomainGuard, discusses why phishing remains so effective, how businesses and individuals become targets, and what you can do to stay vigilant.

Find out more
March 5, 2025

David Habib (Brightspot) | Building a culture of cybersecurity awareness

Cybersecurity awareness is often reduced to check-the-box training, but David Habib, CIO at Brightspot, argues that real security awareness isn’t about formal programs—it’s about making security part of a company’s culture. In this episode, he shares practical insights on how organizations can move beyond stale training sessions to create an engaged and security-conscious workforce.

Find out more