# CVE-2026-82391: Out-of-bounds write in Zephyr HTTP/2 server static-filesystem handler via corrupted receive-buffer length

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-11-10T22:07:39.047Z
- **Modified:** 2026-11-13T14:18:00.777Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

The HTTP/2 front-end of the Zephyr HTTP server aliased connection receive state as a scratch output. In subsys/net/lib/http/http\_server\_http2.c, handle\_http2\_static\_fs\_resource() passed &client-\>data\_len as the file\_size out-parameter of http\_server\_find\_file(). client-\>data\_len is the count of unprocessed bytes remaining in the fixed-size per-connection receive buffer client-\>buffer\[CONFIG\_HTTP\_SERVER\_CLIENT\_BUFFER\_SIZE\] (256 bytes by default), an invariant every frame handler and the socket receive path rely on. Serving any static file therefore replaced that bounded value with the file's on-disk size, and nothing resets it afterwards.

The defect is reached by an unauthenticated HTTP/2 GET for any file under the web root, in applications that register a static-filesystem resource (HTTP\_RESOURCE\_TYPE\_STATIC\_FS) with CONFIG\_FILE\_SYSTEM=y; CONFIG\_HTTP\_SERVER\_VERSION\_2 is enabled by default and no TLS or credentials are required on this path. Once client-\>data\_len exceeds the buffer size, the frame dispatch loop in subsys/net/lib/http/http\_server\_core.c keeps parsing past the end of the received data, and the peer controls the bytes at client-\>cursor, so it can choose which fabricated frame the state machine consumes next by appending bytes after its request.

The inflated length defeats the only guards on the buffer. parse\_http\_frame\_header() and the per-frame handlers read and skip up to a 24-bit frame length beyond the buffer (out-of-bounds read); the compaction memmove(client-\>buffer, client-\>cursor, client-\>data\_len) at the end of request handling copies the file-size number of bytes into the 256-byte buffer, overflowing the rest of struct http\_client\_ctx — including the current\_detail/current\_stream pointers, the parser\_settings function-pointer table and the inactivity\_timer work handler — and the adjacent client contexts in static memory; and the subsequent zsock\_recv(client-\>fd, client-\>buffer + client-\>data\_len, sizeof(client-\>buffer) - client-\>data\_len, 0) underflows its size argument, writing attacker-supplied data of attacker-chosen length out of bounds.

The impact is remote memory corruption in the server's single address space: at minimum a crash or hang of the device, and plausibly control-data overwrite leading to code execution. The HTTP/1 and HTTP/3 static-filesystem handlers already used a local variable and are unaffected; the fix makes the HTTP/2 handler use a local size\_t file\_size as well.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-82391. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-82391.md
Affected: zephyrproject zephyr >= 4.0.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-82391 being exploited?

There is no confirmed exploitation: CVE-2026-82391 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-82391?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-82391?

zephyrproject zephyr \>= 4.0.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-82391?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-82391?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-8jrg-wx88-g75j>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/4e0a5f38b14dba5891fb558c49a526f9f6a3cc29>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-82391>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-82391> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-82391>
