---
id: CVE-2026-34960
title: >-
  barebox prior to version 2026.04.0 contains an out-of-bounds read
  vulnerability in DHCP option parsing within the dhcp_message_type() function
  that fails to verify the options pointer remains within received packet bounds
summary: >-
  barebox prior to version 2026.04.0 contains an out-of-bounds read
  vulnerability in DHCP option parsing within the dhcp_message_type() function
  that fails to verify the options pointer remains within received packet
  bounds. An attacker on…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-125
vendor: pengutronix
product: barebox
affected:
  - barebox < 2026.04.0
patched:
  - barebox 2026.04.0
published: '2026-05-11'
updated: '2026-07-18'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-34960'
references:
  - url: 'https://github.com/barebox/barebox'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/barebox/barebox/releases/tag/v2026.04.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/barebox-out-of-bounds-read-in-dhcp-option-parsing
    label: disclosure@vulncheck.com
  - url: 'https://y637f9qq2x.com/posts/barebox-sandbox-vulns/'
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.0038
epssPercentile: 0.29181
ingestedAt: '2026-07-18T03:20:40.004Z'
---

## Overview

barebox prior to version 2026.04.0 contains an out-of-bounds read vulnerability in DHCP option parsing within the dhcp_message_type() function that fails to verify the options pointer remains within received packet bounds. An attacker on the same broadcast domain can send a crafted DHCP Offer or ACK packet without a proper 0xff end marker to cause the parser to read past valid packet data and potentially crash the system.

## Affected

- `barebox < 2026.04.0`

## Remediation

Upgrade past the affected range:

- `barebox 2026.04.0`
