Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure/impersonate client's TFTP server
-
DeliverySend 516-byte ERROR packet without NUL
-
ExploitCallback reads past tftp_buf end
-
ExecutionApp logs/forwards %s string
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
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.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-137830
NVD
CVE.org
EPSS
GitHub
Exploit-DB