Skip to main content

Zephyr TFTP Client CVE-2026-104377

| EUVDEUVD-2026-137830 LOW
Out-of-bounds Read (CWE-125)
2026-11-29 zephyr
3.7
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure/impersonate client's TFTP server
  2. Delivery
    Send 516-byte ERROR packet without NUL
  3. Exploit
    Callback reads past tftp_buf end
  4. Execution
    App logs/forwards %s string
  5. Impact
    Disclose adjacent memory or fault

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) the victim to be a Zephyr application built on the TFTP client library (subsys/net/lib/tftp) that actually initiates TFTP transfers, and (2) that application to perform a string operation on evt.param.error.msg from a TFTP_EVT_ERROR callback - the in-tree samples/net/tftp_client sample and the 'net tftp' shell both do this via %s logging, so stock consumers are vulnerable, while an application that treats msg with an explicit length would not be. The attacker must be the TFTP server the client contacts, or be on-path/able to spoof a UDP datagram from the server's address, and must send an ERROR datagram with a non-NUL-terminated message (a full 516-byte packet leaves no room for a terminator; a bare 4-byte ERROR exposes stale buffer contents). Limiting factors: no authentication is involved (the client initiates the session), but the attacker cannot act unsolicited - the client must first reach out to TFTP - and impact is confined to reading memory adjacent to the application-owned struct tftpc with no write primitive. Affected versions: >=3.4.0,<4.3.2 and >=4.4.0,<4.5.0.

Impact

This is a genuinely low-priority issue, and the multiple signals agree rather than conflict. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, base 3.7 LOW) describes a network-reachable but high-complexity flaw with only low confidentiality impact and no integrity or availability impact, and the vuln.today Decision label is 'monitor' - the lowest urgency tier - which is consistent with a LOW CVSS. No EPSS score and no CISA KEV entry were provided; absence of KEV plus a 'monitor' decision indicates no evidence of active exploitation. No working exploit is claimed: the only PoC-adjacent artifacts are the vendor fix commit and the GHSA advisory, which document the bug, not a weaponized exploit. The main caveat is that CVSS alone overstates how 'remote' this is: exploitation requires the attacker to be (or to spoof) the TFTP server the client voluntarily contacts, and requires the victim application to perform a string operation (e.g. %s logging) on the unterminated message - the AC:H rating captures that these preconditions are outside pure attacker control. Net: a real but minor information-disclosure/robustness bug in an optional embedded subsystem, correctly triaged as low priority.

Exploit ScenarioDerived

An embedded device running a Zephyr application that uses the TFTP client (for example the in-tree sample or the 'net tftp' shell, both of which log the error message with %s) initiates a TFTP transfer to a server that is attacker-controlled or that an on-path/spoofing attacker can impersonate. The attacker replies with a full 516-byte ERROR datagram whose message field contains no NUL terminator, so the callback receives a char* that runs past the end of struct tftpc; when the application logs or forwards it, adjacent memory is read out of bounds and may be disclosed, or the device faults if the read reaches unmapped memory. No public working exploit is identified at time of analysis - only the vendor patch commit and GHSA advisory exist.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

Out-of-bounds read in the Zephyr TFTP client library (subsys/net/lib/tftp) affects applications built on Zephyr 3.4.0 through 4.3.1 and 4.4.0, in which a TFTP server - or an on-path attacker able to spoof a UDP datagram from the server's address - can reply to a client request with an ERROR packet whose message is not NUL-terminated, so the evt.param.error.msg pointer handed to a TFTP_EVT_ERROR callback runs past the end of the application-owned struct tftpc. Stock in-tree consumers that log the message with %s (the samples/net/tftp_client sample and the 'net tftp' shell) will read adjacent memory into logs or fault if the read reaches unmapped memory; applications that treat msg with an explicit length are not affected. Unauthenticated remote attackers can trigger it, but only after the client itself initiates a transfer, and the primitive is read-only - no out-of-bounds write, no integrity or availability score. There is no confirmed active exploitation (CISA KEV) and no public exploit identified at time of analysis; CVSS 3.1 score is 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) and the vendor-coordinated advisory classifies it as low priority.

RemediationAI

Vendor-released patch: Zephyr 4.3.2 and 4.5.0. Update to one of those releases or take the corresponding backport - main via PR #117181 / commit c6389cc2295be461cd9177090481a1d8a2bb5636, v4.4-branch via PR #121307, v4.3-branch via PR #121306 and v3.7-branch via PR #121305, all reported merged. Because tftp_buf is the final member of the application-owned struct tftpc, patching the library is the complete fix and no configuration change removes the exposure. For applications that cannot update immediately, the compensating control is on the consumer side: do not pass evt.param.error.msg to unbounded string handling - use bounded formatting or a length-limited copy, or ignore the message entirely, which prevents the out-of-bounds read from being exercised at the cost of losing the server's error text in logs; the stock sample and 'net tftp' shell callbacks do log the pointer with %s and must be modified if the library is not updated. Note that an application still running a vulnerable library exposes stale or unterminated buffer contents internally even if it does not print them. Advisory: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-g2h6-wxf8-crvg; fix commit: https://github.com/zephyrproject-rtos/zephyr/commit/c6389cc2295be461cd9177090481a1d8a2bb5636.

Affected VersionsENISA

Zephyr 3.4.0 <4.3.2
Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

TFTP (RFC 1350) runs over UDP with a 4-byte header - a 2-byte opcode followed by a 2-byte block or error code - and the ERROR packet (opcode 5) carries a human-readable, NUL-terminated message after that header. Zephyr's client keeps incoming datagrams in client->tftp_buf, a TFTPC_MAX_BUF_SIZE (516-byte) array that is the last member of struct tftpc, which itself is allocated by the application. recv_from_peer() accepts up to the full 516 bytes, so a maximum-size ERROR datagram leaves no room for a terminator, and a bare 4-byte ERROR leaves whatever the previous packet wrote in the buffer. The callback parameter struct tftp_error_param exposes only a bare char *msg with no length, meaning consumers are contractually required to treat it as a C string, yet tftp_get(), tftp_put() and send_data() invoked the TFTP_EVT_ERROR callback without enforcing termination - the root cause class is CWE-125 (out-of-bounds read), not a write bug. The commit that introduced the client-context behaviour (755f0b7d270, first released in v3.4.0) is the origin of the unbounded pointer. The upstream fix (c6389cc2295b) adds an error_msg() helper that writes a NUL into tftp_buf at CLAMP(rcv_size, TFTP_HEADER_SIZE, sizeof(tftp_buf) - 1), so the callback string is always contained within the buffer at up to TFTP_BLOCK_SIZE - 1 characters, and documents the guarantee in include/zephyr/net/tftp.h. The trigger requires the attacker to be the server being contacted or to be on-path/spoofing the server's source address; exploitation is conditional on the application performing a string operation on the message, which the in-tree sample and shell callbacks do.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.7 LOW

AV:N and PR:N because the client needs no auth, but AC:H since the attacker must be/spoof the contacted server and the app must string-process msg; impact is limited OOB read, so C:L, I:N, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
optional TFTP client subsystem of an embedded RTOS, narrow usage
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy