CVE-2026-8023

HIGH

Zephyr 4.0.0-4.4.0 HTTP Static FS - Path Traversal File Read

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-8023. PoCs published by ret2c.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2026-8023, demonstrating a path traversal vulnerability in Zephyr's HTTP server static-fs handler. The exploit showcases both HTTP/1.1 and HTTP/2 attacks to access files outside the intended web root directory.

Description

Zephyr's HTTP server (subsys/net/lib/http) provides a static-filesystem resource type (HTTP_RESOURCE_TYPE_STATIC_FS, available when CONFIG_FILE_SYSTEM is enabled) that serves files from a configured root directory. Before this fix, both the HTTP/1 and HTTP/2 front-ends placed the raw, attacker-controlled request path into client->url_buffer (assembled in on_url() for HTTP/1 and copied verbatim from the :path pseudo-header for HTTP/2) without resolving ./.. segments. The static-FS handler then built the on-disk filename by directly concatenating the configured root with that raw URL (snprintk(fname, ..., "%s%s", static_fs_detail->fs_path, client->url_buffer) at http_server_http1.c:603 and http_server_http2.c:490) and opened it with fs_open(fname, FS_O_READ). Because the handler is reached via wildcard/leading-dir (fnmatch FNM_LEADING_DIR) or fallback resource matching, a request such as GET /<prefix>/../../<file> is dispatched to the handler and, after the underlying filesystem (e.g. LittleFS/FAT) resolves the .. segments, escapes the configured web root, letting an unauthenticated remote client read arbitrary readable files on the mounted volume (information disclosure). The HTTP server requires no TLS or authentication to reach this path. The fix adds http_server_remove_dot_segments(), which canonicalizes the path portion of the URL before resource lookup in both protocol handlers, neutralizing the traversal. Affects releases v4.0.0 through v4.4.0 for deployments that register a static-filesystem resource.

Exploits (1)

nomisec WORKING POC
by ret2c · poc
https://github.com/ret2c/CVE-2026-8023

This repository contains a functional proof-of-concept exploit for CVE-2026-8023, demonstrating a path traversal vulnerability in Zephyr's HTTP server static-fs handler. The exploit showcases both HTTP/1.1 and HTTP/2 attacks to access files outside the intended web root directory.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Zephyr RTOS HTTP server (versions >= 4.0.0, < 4.3.1; >= 4.4.0, < 4.4.2)
No auth needed
Prerequisites: Zephyr RTOS with HTTP server and static-fs handler enabled · Wildcard resource matching configured
mistral-large-3 · analyzed Jun 30, 2026 Full analysis →

Scores

CVSS v3 7.5
EPSS 0.0091
EPSS Percentile 56.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-22 CWE-23
Status published
Products (2)
zephyrproject/zephyr 4.0.0 - 4.4.1
zephyrproject/zephyr 4.0.0 - 4.5.0
Published Jun 29, 2026
Tracked Since Jun 30, 2026