CVE-2026-136411: BusyBox tftpd serves absolute paths when started without a directory

ByLinuxtastic

November 30, 2026 #BusyBox, #CVE

BusyBox’s tftpd confines clients by changing root into the directory given on its command line. Start it without that directory argument and there is no chroot and no chdir, so a request whose file name begins with / is resolved from the real root of the file system: a client can fetch /etc/shadow, and, because uploads are allowed unless -r was given, overwrite any file the daemon can write, which on a router or appliance running it as root is every file. The fix is in BusyBox’s git master since 6 November 2026 but no release carries it yet. If a BusyBox tftpd is running anywhere, make sure it is started with a DIR argument as root, or stop it; a release with the fix does not exist on 30 November. This is a bug in the server applet; the tftp client is not affected.

CVE-2026-136411 at a glance.

ComponentBusyBox, the tftpd applet (networking/tftp.c, tftpd_main()), usually run from udpsvd or inetd on routers, embedded devices, Alpine systems and container base images
Affected versionsBusyBox 1.38.0 and every earlier release that includes tftpd, when the daemon is started without a DIR argument
Fixed inNo release as of 30 November 2026. The fix is git commit b67f7b7d (“tftpd: make DIR argument work for non-root too, strip leading /”, 6 November 2026) in master; the newest release on busybox.net is still 1.38.0 (13 May 2026). Workaround: always start tftpd with a DIR argument, as root
SeverityCVSS 4.0 9.3 Critical (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) and CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) from the VulnCheck CNA, repeated by NVD and Ubuntu. Ubuntu priority medium; Debian “minor issue”, no DSA planned for trixie; Red Hat and Alpine pages could not be read for this page. CWE-36, absolute path traversal
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026; CISA’s SSVC says no known exploitation, automatable. EPSS 0.0151 (75th percentile) on 27 November 2026
Who is exposedAny device or host where BusyBox tftpd listens on UDP port 69 and was started without a directory: embedded firmware, PXE and provisioning hosts built on Alpine or BusyBox, container images that expose a TFTP server. With DIR given as root the daemon chroots and the bug is unreachable; with DIR given as a non-root user the old code refused to start at all, so a running non-root tftpd on 1.38.0 or earlier is one without DIR
PublishedPatch proposed on the BusyBox list 17 August 2026 (Ali Ahmet Memis), accepted 6 November 2026; CVE record 24 November 2026 (VulnCheck CNA); this page built 30 November 2026, last updated 30 November 2026

What it is

tftpd takes the request file name from the packet into local_file and checks it for dots: a name starting with . or containing /. is rejected with “dot in file name”, which blocks ../ traversal. It never checked for a leading slash, because the design relied on xchroot(DIR): with the daemon rooted in the served directory an absolute name cannot leave it. The report that started the thread in August showed what happens when DIR is omitted: no chroot and no chdir, tftp -g -r /etc/shadow HOST served the file, and a write request did the reverse. Uploads are on by default; only -r turns them off.

The precondition is therefore a deployment choice rather than an exotic one. Running udpsvd -vE 0.0.0.0 69 tftpd from a working directory, or an inetd.conf line without the directory, is a common way to stand up a TFTP server on an embedded box, and the daemon normally runs as root because port 69 and the chroot need it. On such a host every readable file is downloadable and every writable one, which is all of them, can be replaced by an unauthenticated UDP packet. The CNA’s 9.8 and CISA’s “total” technical impact describe that case.

The maintainer, Denys Vlasenko, considered making DIR mandatory and settled on the reporter’s approach. The commit adds a loop after the file name is taken, while (local_file[0] == '/') local_file++;, so absolute names become relative to wherever the daemon is and the existing dot check still applies; it leaves a TODO about tightening the dot rule to .. only. It also changes start-up: xchroot(argv[0]) becomes a chroot() that, if it fails because the daemon is not root, falls back to xchdir(DIR), so a non-root tftpd can now be given a directory instead of refusing to start. Twenty-three lines added and six removed, all in networking/tftp.c.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. Most affected copies are not distribution packages but BusyBox built into firmware or a container image.

DistributionStatusFixed package
AlpineNot readthe Alpine tracker returned an error for this page; Alpine’s busybox is 1.37.x or 1.38.x on supported branches and carries the bug unless Alpine has backported the commit
Debian bookworm, trixie, forkyVulnerable, unfixedbookworm 1:1.35.0-4+deb12u1, trixie 1:1.37.0-6, forky and sid 1:1.38.0-3; trixie marked no-dsa (minor issue)
Ubuntu 14.04 to 26.04Needs triage (priority medium)no fixed busybox listed for any release
RHEL, Rocky, AlmaNot readthe Red Hat page returned an error for this page; RHEL does not ship BusyBox as a supported package
Fedora, openSUSE, ArchNot consultedtrackers not read for this page
Firmware, OpenWrt-style builds, Docker busybox and Alpine imagesAffected on 1.38.0 and earlierrebuild with master at or after commit b67f7b7d, or start tftpd with DIR as root

How to check

Three questions, in order: is a BusyBox tftpd listening, how was it started, and can the world reach UDP 69. The second question is the whole bug: a DIR argument and root privileges mean a chroot, and a chroot means no exposure.

# 1. BusyBox version and whether tftpd is built in
busybox 2>&1 | head -1
busybox --list 2>/dev/null | grep -x tftpd
# every release through 1.38.0 is affected; look for commit b67f7b7d in a rebuilt binary's changelog

# 2. is tftpd running, and with what arguments?
ss -lunp 2>/dev/null | grep -E ':69\b'
ps -o pid,user,args 2>/dev/null | grep -E '[t]ftpd|[u]dpsvd.*69'
grep -E 'tftp' /etc/inetd.conf /etc/xinetd.d/* /etc/init.d/* /etc/conf.d/* 2>/dev/null
# vulnerable: "tftpd" with no directory after the options; also note -r (read-only) if present

# 3. who can reach port 69?
nft list ruleset 2>/dev/null | grep -E 'udp dport 69|tftp' ; iptables -S 2>/dev/null | grep -E '69|tftp'

If nothing listens on 69, you are done. A tftpd line that ends in a directory and runs as root is chrooted and safe from this bug. A line with no directory is the vulnerable case, and if it also lacks -r the host can be written to as well as read. Step 3 decides how bad that is: a provisioning server reachable only from a management VLAN is exposed to that VLAN, and one on a public interface is exposed to the internet.

BusyBox tftpd logs requests only when started with -v, so most deployments have no record. Where it is verbose, or where udpsvd -v logs connections, look for absolute file names.

grep -hE 'tftpd.*(RRQ|WRQ|/)' /var/log/messages /var/log/syslog 2>/dev/null | grep -E "'/|\"/| /[a-z]" | head
journalctl -u '*tftp*' 2>/dev/null | grep -E ' /[a-z]' | head
# on a write-capable daemon, check for recently changed system files
find /etc /bin /sbin /usr -xdev -newermt '2026-08-17' -type f 2>/dev/null | head

A request for a name beginning with / on a daemon started without DIR is a read or write of the real file system. A system file modified since the report went public on a host that allowed uploads means the box should be reflashed or rebuilt, not cleaned.

How to fix it

There is no fixed release to install. Either rebuild BusyBox from master at or after commit b67f7b7d, or change how the daemon is started so the chroot applies, which is the right configuration anyway and works on every version.

# a) rebuild from git master (the commit is in master; apply it to a 1.38.0 tree if you need a release base)
git clone https://git.busybox.net/busybox && cd busybox
git log --oneline -1 b67f7b7d14ac98ca84491718d364b955d21a9cd5
make defconfig && make -j"$(nproc)"

# b) or fix the invocation: always give a directory, run as root so the chroot takes effect
# udpsvd example (replace the line in your init script or inetd.conf)
udpsvd -vE 0.0.0.0 69 tftpd -r /srv/tftp          # -r: no uploads unless you need them
# inetd.conf example
# tftp dgram udp nowait root /bin/busybox tftpd -r /srv/tftp

If you cannot change the start-up line yet, stop the service or close the port; TFTP is rarely needed from more than a handful of hosts.

# stop it
pkill -f 'tftpd' ; sed -i 's/^tftp/#tftp/' /etc/inetd.conf 2>/dev/null && kill -HUP "$(pidof inetd)"
# or allow UDP 69 only from the provisioning subnet (nftables)
nft add rule inet filter input ip saddr 10.0.9.0/24 udp dport 69 accept
nft add rule inet filter input udp dport 69 drop

Do not rely on -r alone: read-only mode stops the overwrite but still serves /etc/shadow and every other readable file. And do not treat a non-root tftpd as the safe option on current releases; before the fix a non-root daemon could only run without DIR, which is exactly the vulnerable configuration. Give it a directory and the privileges to chroot into it, or rebuild with the fix so a non-root daemon can at least chdir.

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.