Introduction
A TFTP server that administrators assumed was confined to /srv/tftp will happily hand an unauthenticated remote client the contents of /etc/shadow, as long as the daemon was started the way many setups start it: after changing into the serving directory but without passing a DIR argument. CVE-2026-136411 in BusyBox tftpd is a textbook absolute path traversal (CWE-36) with a CVSS 3.1 score of 9.8. Because BusyBox is everywhere across embedded devices, the exposure depends on how the service was launched rather than on any exotic preconditions.
BusyBox combines small implementations of common UNIX utilities into a single executable aimed at resource-constrained and embedded systems, and it ships in everything from routers and access points to printers and power distribution units. Denys Vlasenko maintains it under GPLv2. Its applets are selected at build time, so the presence of BusyBox in a product does not by itself mean tftpd is compiled in or exposed. That is why this issue is best assessed per deployment rather than by version string alone.
Technical Information
The affected component is BusyBox's TFTP server, implemented in networking/tftp.c. The weakness is CWE-36, Absolute Path Traversal, and both the CVE record and the VulnCheck advisory describe affected versions through 1.38.0.
The vulnerable implementation relies on a single confinement mechanism: a chroot() into the optional DIR argument. The filename supplied by the client in the TFTP request is never checked for a leading slash. If DIR is omitted, there is no chroot and no directory change, so a request such as /etc/shadow resolves from the actual filesystem root instead of an intended TFTP directory.
The pre-fix filename check only rejected names beginning with . or containing /.:
local_file = G.block_buf + 2; if (local_file[0] == '.' || strstr(local_file, "/.")) { error_msg = "dot in file name"; goto err; }
This rejects parent-directory traversal sequences, but it does not stop a simple absolute filename such as /etc/shadow, which begins with / rather than . and needs no .. component to reach outside the intended location.
The daemon is documented to run as an inetd service and also via udpsvd, using UDP port 69. The vulnerability is reachable through TFTP requests, not an HTTP endpoint. The two request types expose different filesystem operations:
- An RRQ (read request) whose filename begins with
/requests a file using an absolute pathname, allowing disclosure of sensitive files such as/etc/shadowunder the vulnerable configuration. - A WRQ (write request) uses the same filename handling for uploads, so an attacker can overwrite existing files the daemon can write.
- With
-cenabled, uploads may also create new files where the daemon has permission.
Uploads are enabled unless -r is supplied, and tftpd typically runs as root. That is what makes the write path serious: a root-owned script or a crontab becomes a writable target.
Attack flow. An attacker who can reach the UDP port 69 service sends a single TFTP packet. For disclosure, an RRQ with the filename /etc/shadow is served directly from the real root because the daemon performed no chroot or chdir. For modification, a WRQ with an absolute filename that the root daemon can write overwrites that file; if -c is present, a new file can be created instead. No authentication, user interaction, or prior access is required, which is reflected in the CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and the CVSS 4.0 vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N.
The key operational distinction is between informally selecting a serving location (for example by cding into it) and actually supplying DIR. Only the latter triggers the confinement logic; changing the working directory alone does not stop absolute path resolution.
Proof of Concept
No standalone exploit program was published, but the disclosure provides a complete, reproducible command sequence that both the reporter, Ali Ahmet Memis, and the BusyBox maintainer, Denys Vlasenko, confirmed.
From the BusyBox mailing list disclosure, the server is started without a DIR argument and the client reads the real /etc/shadow:
$ cd /srv/tftp && tftpd # inetd/udpsvd service, started WITHOUT a DIR argument
$ tftp -g -r /etc/shadow HOST # served: reads the real /etc/shadow
The reporter states that both the read and the write were reproduced against a tftpd started without DIR. Because uploads use the same filename handling and are enabled unless -r is given, an attacker can also overwrite any file the daemon (typically root) can write via a WRQ, and with -c create new files, reaching targets such as a root-owned script or crontab. In short, an unauthenticated remote attacker sends an RRQ or WRQ packet whose filename begins with / to read or write arbitrary absolute paths.
This is the same class of behavior originally reported in BusyBox bug 4874 (2012), whose earlier reproducer is identical in spirit:
Server: busybox udpsvd -vE 0.0.0.0 69 tftpd /boot
Client: busybox tftp -g -r /etc/shadow localhost
The evidence is a verified, published reproducer (exact commands plus the vulnerable and fixed source), not an independently executed exploit binary. It is still enough to reliably demonstrate the vulnerability against any BusyBox 1.38.0 or earlier tftpd instance launched without a DIR argument.
Patch Information
The fix is commit b67f7b7d14ac98ca84491718d364b955d21a9cd5, titled "tftpd: make DIR argiment work for non-root too, strip leading /" (the typo is in the original). Denys Vlasenko committed it to BusyBox master on 6 November 2026 and announced it on the busybox-cvs list. It changes only networking/tftp.c, with 23 lines added and 6 removed. The commit message does not mention the CVE, and none of the sources name a tagged release that includes the fix, so the commit itself is the thing to look for.
Ali Ahmet Memis reported the bug and sent a patch in August 2026. His patch stripped leading slashes rather than rejecting them, because PXE clients routinely request names like /pxelinux.0. In November, Vlasenko agreed the approach was correct and implemented it, adding a second change so that if DIR cannot be chrooted into, tftpd chdirs to it instead of aborting, matching how ftpd already behaves.
Change 1: normalize the client-supplied filename. The filename from the RRQ/WRQ packet (local_file) is cleaned before any other check runs:
local_file = G.block_buf + 2; + + /* If someone really wants to expose their entire filesystem, "tftpd /" is the way to do it. + * Most people don't want that. + * Prevent escape via absolute paths or /../: + */ + while (local_file[0] == '/') + local_file++; if (local_file[0] == '.' || strstr(local_file, "/.")) { +//TODO: disallow only ".."? error_msg = "dot in file name"; goto err; }
The while loop skips every leading slash, so /etc/shadow becomes etc/shadow and ///etc/shadow collapses to the same thing. Because the name is now relative, the kernel resolves it from the process's current working directory (the served directory) rather than from /. The ordering matters: the existing dot check now runs after stripping, so /../etc/passwd becomes ../etc/passwd, which begins with . and is rejected, while the strstr(local_file, "/.") test still catches .. components deeper in the path. Legitimate PXE requests for /pxelinux.0 resolve to pxelinux.0 within the served directory. The comment states the new policy outright: exporting the whole filesystem now requires tftpd / and is no longer a silent default.
Change 2: make DIR usable without root. Previously xchroot(argv[0]) exited the daemon if chroot() failed, so unprivileged deployments could not use DIR and ran unconfined. The patch makes chroot best-effort and always changes the working directory:
if (argv[0]) { - xchroot(argv[0]); + const char *DIR = argv[0]; + if (chroot(DIR) == 0) + DIR = "/"; + /* + * If chroot failed, assume that we aren't root, + * and at least chdir to the specified DIR. + * If chroot worked, move current dir to new "/": + */ + xchdir(DIR); }
The two changes depend on each other. Change 1 makes every request relative to the working directory, and change 2 ensures that directory is the one the administrator chose, even without root. With root you still get a real chroot; without root you get a chdir into DIR, and the stripped, dot-checked filename cannot climb out through an absolute path or ... The remaining diff edits are cosmetic (protocol comment formatting and "case independent" becoming "case insensitive"), and tftpd_main grows by 16 bytes.
Compared with the August submission, which added only the three-line slash-stripping loop, the committed version keeps that same logic and adds the explanatory comment, the TODO note, and the chroot-to-chdir fallback.
Affected Systems and Versions
BusyBox through 1.38.0, specifically the tftpd applet in networking/tftp.c, is affected. The exploitable condition is a reachable tftpd service started without a DIR argument, in which case no chroot or chdir is performed and absolute paths resolve from the real filesystem root. Disclosure via RRQ applies to any such instance; write and create exposure additionally depend on uploads being enabled (no -r) and, for creation, -c being present. BusyBox 1.38.0 was announced on 13 May 2026. None of the reviewed sources identify a tagged release that includes the fix, so the fix commit b67f7b7d14ac98ca84491718d364b955d21a9cd5 is the reference point for a corrected build.
Vendor Security History
Ubuntu's USN-6961-1, published 14 August 2024, documents earlier BusyBox security issues: arithmetic input validation problems under CVE-2022-48174 and memory management problems in awk expressions under CVE-2023-42363, CVE-2023-42364, and CVE-2023-42365, with potential denial of service or arbitrary code execution. These are separate vulnerabilities and are not evidence of exploitation of CVE-2026-136411. For the current issue, the public record shows a researcher report in August 2026, maintainer agreement, and a corrective commit in November 2026. That is an upstream remediation response, though the availability of corrected downstream products is still unresolved.
References
- NVD: CVE-2026-136411
- CVE Record: CVE-2026-136411
- VulnCheck advisory: BusyBox through 1.38.0 tftpd Absolute Path Traversal
- Fix commit b67f7b7 on GitHub
- Fix commit b67f7b7 via GitHub API
- busybox-cvs announcement of the commit
- Maintainer reply accepting the patch (November 2026)
- Original report and patch proposal (August 2026)
- Vulnerable source in networking/tftp.c
- BusyBox bug 4874 original reproducer (2012)
- VulDB entry for CVE-2026-136411
- BusyBox project about page
- Ubuntu USN-6961-1: BusyBox vulnerabilities
- USENIX Security 2024: Fuzzing BusyBox



