# CVE-2026-104377: Out-of-bounds read via unterminated TFTP ERROR message in Zephyr TFTP client

- **Severity:** LOW 3.7
- **CVSS:** 3.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.33% (percentile 28, 2026-12-01)
- **CWE:** CWE-125
- **Published:** 2026-11-29T20:56:42.845Z
- **Modified:** 2026-11-29T21:17:01.273Z

> **AI summary (AI-generated, claude-haiku-5-5):** A malicious or spoofing TFTP server can send an unterminated ERROR message, causing the Zephyr TFTP client to perform an out-of-bounds read past its buffer during application callbacks.

## Who should check

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

## Description

The Zephyr TFTP client library (subsys/net/lib/tftp/tftp\_client.c) reports server ERROR packets to the application through a TFTP\_EVT\_ERROR event whose evt.param.error.msg field is a bare char \* pointing at client-\>tftp\_buf + TFTP\_HEADER\_SIZE, with no length. RFC 1350 requires the ERROR message to be NUL-terminated, but tftp\_get(), tftp\_put() and send\_data() never checked or enforced this before invoking the callback.

A TFTP server (or an on-path/spoofing attacker able to inject a UDP datagram from the server's address) can answer a client request with a full-size 516-byte ERROR datagram whose message has no terminator. The callback then receives a string that runs to the end of tftp\_buf, which is the last member of the application-owned struct tftpc, so any string operation on it (for example the %s logging done by the in-tree sample and net tftp shell callbacks) reads past the end of the object until a stray zero byte is found. A 4-byte ERROR with no message similarly exposes stale, possibly unterminated buffer contents from the previous packet.

The impact is an out-of-bounds read of memory adjacent to the struct tftpc object in the context of the application callback. Depending on what the application does with the message, this can disclose adjacent memory (e.g. into logs or anything the application forwards) or fault if the read reaches unmapped or protected memory. No out-of-bounds write is possible. The fix NUL-terminates the message inside tftp\_buf at the received length, clamped to the last byte of the buffer.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.4.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-104377. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104377.md
Affected: zephyrproject zephyr >= 3.4.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-104377 being exploited?

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

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

Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

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

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

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-104377?

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-g2h6-wxf8-crvg>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/c6389cc2295be461cd9177090481a1d8a2bb5636>

## 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-104377>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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