# CVE-2023-4041: Second Stage Gecko Bootloader GBL Parser Buffer Overrun Vulnerability

> Attackers can exploit a buffer overflow in the Gecko Bootloader parser to inject code and bypass authentication during firmware updates.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 23 Aug 2023
- **Updated:** 3 Oct 2024
- **Also known as:** GHSA-hvfc-3xxp-p6hw

## What is CVE-2023-4041?

CVE-2023-4041 is a critical memory corruption vulnerability in Silicon Labs Gecko Bootloader, published on 23 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), Out-of-bounds Write, Download of Code Without Integrity Check vulnerability in Silicon Labs Gecko Bootloader on ARM (Firmware Update File Parser modules) allows Code Injection, Authentication Bypass.This issue affects "Standalone" and "Application" versions of Gecko Bootloader.

Weakness: CWE-494 (Download of Code Without Integrity Check), CWE-913 (Improper Control of Dynamically-Managed Code Resources), CWE-787 (Out-of-bounds Write), CWE-120 (Buffer Copy without Checking Size of Input)

## Which versions are affected by CVE-2023-4041?

It affects 1 product.


Products: Silabs Gecko Bootloader.

## How do I fix CVE-2023-4041?

No fix has been published for CVE-2023-4041 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-4041 being exploited?

There is no known exploitation of CVE-2023-4041 in the wild and no public exploit code.

## Other vulnerabilities in Silicon Labs Gecko Bootloader

- [CVE-2022-24936](https://insights.sbomify.com/CVE-2022-24936/): Gecko Standalone Bootloader vulnerability may allow bypassing application secure boot in some Series 2 devices (high 8.3)
- [CVE-2023-3487](https://insights.sbomify.com/CVE-2023-3487/): Integer overflow in Silicon Labs Gecko Bootloader leads to unbounded memory access (high 7.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-4041 and fix it if it is affected.

What it is: CVE-2023-4041 is a critical memory corruption vulnerability in Silicon Labs Gecko Bootloader, published on 23 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-4041 in the wild and no public exploit code.

Affected product: Silicon Labs Gecko Bootloader. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-4041/ (Markdown: https://insights.sbomify.com/CVE-2023-4041/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-4041
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-4041
- OSV: https://osv.dev/vulnerability/CVE-2023-4041

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-4041/
Summaries are generated and may contain mistakes; the official description above is the record.
