//nefariousplan

CVE-2026-11452: GL.iNet's Denial Describes 4.8.1. The Bug Is What 4.4.5 Ships.

vendor

patterns

cve

proof of concept

The GL.iNet GL-MT3000 is a pocket-sized travel router. The customer who plugs it into hotel ethernet, enables the USB drive's SMB share, and walks away is the named victim of CVE-2026-11452. The bug site is FUN_0042d340 in gl_nas_sys, the root daemon that synchronizes Samba accounts. The function builds a shell command with snprintf(cmd, 0x100, "printf \"%s\n%s\n\" | smbpasswd -a -s %s", password, password, name) and hands the buffer to system(). The password is interpolated between two typed " characters.

GL.iNet's response to the CVE states that the password "is handled inside a shell single-quote context." The disassembly shows double quotes. Both statements cannot describe the same firmware.

The GL.iNet GL-MT3000 is a pocket-sized travel router. The customer who plugs it into hotel ethernet, enables the USB drive's SMB share, and walks away is the named victim of CVE-2026-11452. The bug site is FUN_0042d340 in gl_nas_sys, the root daemon that synchronizes Samba accounts. The function builds a shell command with snprintf(cmd, 0x100, "printf \"%s\n%s\n\" | smbpasswd -a -s %s", password, password, name) and hands the buffer to system(). The password is interpolated between two typed " characters.

GL.iNet's response to the CVE states that the password "is handled inside a shell single-quote context." The disassembly shows double quotes. Both statements cannot describe the same firmware.

The double quotes are typed into the format string

The researcher's submission is dated 2026-05-12. The CVE was reserved on 2026-06-06 and published the next day. Between the submission and the publication, GL.iNet shipped firmware 4.8.1, which the vendor response names as their test target. Both 4.4.5 and 4.8.1 are real artifacts. The CVE is about the former. The denial is about the latter. The post will return to that, after the bug.

The bug site, as decompiled from gl_nas_sys on 4.4.5:

// FUN_0042d340 @ 0x42d3c0, gl_nas_sys (root)
snprintf(cmd, 0x100,
    "printf \"%s\n%s\n\" | smbpasswd -a -s %s",
    password,   // user-controlled, between the typed quotes
    password,   // same buffer, interpolated twice
    name);
system(cmd);

The format-string literal lives at offset 0x476940 in the binary. The bytes the C compiler wrote into rodata are:

printf "%s\n%s\n" | smbpasswd -a -s %s

The two " characters around %s\n%s\n are typed into the C source. They are not the output of an escape function. They are not the result of a quoting library. They are eight bytes the developer added to the format string to delimit a shell string and feed the password to smbpasswd over a pipe. The developer's mental model is "wrap it in quotes so the shell does not break it." The character used to wrap is ".

Inside a double-quoted shell string, /bin/sh expands $(...), backticks, and ${...} before passing the result downstream. The behaviour is documented in POSIX; it is the definition of what double quotes mean. The escape would be single quotes, or no shell at all. The wrap was double quotes.

The PoC constructs the password as:

command  = "sh -c %s>%s 2>&1" % (shlex.quote(CMD), shlex.quote(OUT))
nonce    = str(time.time_ns())[-8:]
password = "Aa1!$(%s)%s" % (command, nonce)

When the snprintf renders, the shell sees:

printf "Aa1!$(sh -c 'id'>'/tmp/poc' 2>&1)12345678
Aa1!$(sh -c 'id'>'/tmp/poc' 2>&1)12345678
" | smbpasswd -a -s root

/bin/sh -c parses the double-quoted string. $(...) is the first token it evaluates. sh -c 'id'>'/tmp/poc' 2>&1 runs as root and writes id's output to /tmp/poc. The substitution returns empty stdout. printf then prints Aa1!12345678\nAa1!12345678\n and pipes it to smbpasswd, which silently rejects the malformed input. The marker file is on disk. The chain ran as root before smbpasswd was ever invoked.

The dispatcher loads any .so by name and the password ends at system()

The path from network to FUN_0042d340 has no authentication at any hop.

// /www/cgi-bin/glc, main(), pre-patch
json_unpack_ex(body, "{s:s,s:s,s?o}",
    "object", &object,    // "nas-web"
    "method", &method,    // "set_user_pwd"
    "args",   &args);     // {"name":"root","password":"Aa1!$(...)"}

snprintf(path, 0x80, "%s/%s.so", "/usr/lib/oui-httpd/rpc", object);
handle  = dlopen(path, RTLD_NOW);
handler = dlsym(handle, method);
handler(args, result);

The dispatcher takes the attacker-supplied object string, concatenates it into a path, dlopens the resulting .so, looks up the attacker-supplied method as an exported symbol, and calls it with the raw args. There is no auth gate. There is no method allowlist. There is no content inspection of the JSON. Any exported symbol in any .so under /usr/lib/oui-httpd/rpc is reachable from the open network.

nas-web.so::set_user_pwd is one of those symbols. It re-serializes the args back to JSON and POSTs to 127.0.0.1:<gl_nas_sys_port>/NAS_API_SET_USER_PWD. The route dispatcher inside gl_nas_sys looks up the URI and lands in case 0x65:

// FUN_00440190, gl_nas_sys route dispatcher
case 0x65: return FUN_0043db80(srv, con, p_d);

FUN_0043db80 extracts name and password, calls FUN_00431190 to update the on-disk DB, then FUN_0042e200(name, 0, password) to sync to Samba. The 0 in the second argument is the old-password slot; passing zero short-circuits the verify step. FUN_0042e200 calls FUN_0042e0b0, which calls FUN_0042d340. The password buffer travels through five forwarders. None of them inspect it. The last one types two " around it and hands the result to system().

The reachability is structural. The dispatcher is not narrowly scoped to one bug. The same researcher's repository names six other RCE primitives through the same /cgi-bin/glc dispatcher on the same firmware:

GL-iNet/MT3000/4.4.5/
  nas_set_user_pwd_glc_rce/      (this CVE)
  nas_proto_media_dir_glc_rce/
  nas_eject_disk_do1_glc_rce/
  nas_remove_user_glc_rce/
  tor_set_config/
  iwinfo_scan_ubus_rce/
  luci_rpc_sys_exec_rce/

Seven .so-handler RCEs in one firmware version through one dispatcher. The dispatcher is the primitive. The handlers are instances. CVE-2026-11452 is the instance that received a CVE number; the dispatcher is what the next six CVEs will share.

Quote-wrap is not escape

The author of FUN_0042d340 was thinking about quoting. The format string is internally consistent: a double-quoted shell string with \n separators piped to a tool that reads passwords from stdin. The author understood that smbpasswd -s reads stdin, and that two \n-terminated lines satisfy the "new password" / "confirm new password" prompt sequence. The author then reached for " as the wrap character.

The thought is "the shell will treat the password as a literal string because it is wrapped in quotes." The character is ". The shell's behaviour inside a "-delimited string is documented in the POSIX spec, and it is not "treat as literal." It is "expand $(...), backticks, ${...}, and \ escapes; otherwise pass through."

The escape function for this destination exists. fork() plus pipe() plus execv("/usr/bin/smbpasswd", argv) writes the password to a file descriptor that smbpasswd reads, with zero shell parsing on the value. The C standard library exposes snprintf and system as separate primitives precisely because they are not the same operation. OpenWrt's own utility code uses execve in adjacent paths. The same gl_nas_sys binary makes execve-family calls elsewhere. The function call existed; it was not used here.

The catalog calls this shape quote-wrap-is-not-escape: the destination's string-quoting convention is encoded as a typed character in the source, instead of as a call to the destination's escape primitive. The character is not a function. It does not run. It does not normalize. It does not check. It marks the bytes around it as "inside a shell string"; what the shell does inside that string is the shell's choice, not the source author's. The pattern's prior exhibit was PHP code typing three ' characters into a popen line in the same project that called escapeshellarg() forty-seven times elsewhere. The language was different. The thought was the same. The character was different. The thought was the same.

In gl_nas_sys, the same project ships execve callers in adjacent files. The bug site reached for ".

The denial describes 4.8.1. The CVE is for 4.4.5.

GL.iNet's response, recorded in the CVE entry:

The current code escapes single quotes in the password parameter and handles it inside a shell single-quote context. The payloads in the report, which rely on $() or backticks to trigger command substitution, are not executed under the current code path. Testing on GL-MT3000 running firmware 4.8.1 showed no command-execution marker file was created.

Two facts stated:

  1. The code "handles" the password in a "shell single-quote context."
  2. The test target is firmware 4.8.1.

Two facts about the bug:

  1. The disassembly of gl_nas_sys in firmware 4.4.5 shows printf "%s\n%s\n", with the password between two double-quote characters at format-string offset 0x476940. The PoC includes Ghidra screenshots with the format-string bytes highlighted, and the firmware image is publicly downloadable from dl.gl-inet.cn/router/mt3000/stable. The bytes are checkable; the disagreement is not opinion.
  2. The CVE record names affected versions as "up to and including 4.4.5" and the fixed version as 4.8.1.

GL.iNet tested the fix. The fix works. They reported, accurately, that the fix works. The CVE is not for the fix. The CVE is for the firmware shipped on routers that have not auto-updated, including the long tail of customers running the device disconnected from the GL.iNet update channel by design, because the device is sold as a travel router and travel routers are configured once and forgotten.

The pattern in the catalog is denial-by-pedantry. The shape is consistent with Oracle's narrow definition of "Oracle Cloud system" in the credential-exposure response: a statement that is true within its own boundary, written in language that a customer reads as "this does not affect you." Oracle's boundary was which systems counted as "Oracle Cloud." GL.iNet's boundary is which firmware version counts as "current code path." Neither boundary is named in the surface statement. Both boundaries do the work.

The customer reading "current code path" understands the firmware on their router. The vendor writing "current code path" understands the head of master, which is what shipped as 4.8.1. The two readings are reconcilable only by reading the second paragraph, which names the test firmware. The first paragraph is what the news cycle quotes. The first paragraph is what 4.4.5 customers will read.

A customer who reads the vendor statement at face value does not upgrade. The router keeps listening on /cgi-bin/glc. The password handler keeps interpolating into double quotes. Five other dispatcher-handler pairs in the same firmware do the equivalent through different sinks. The denial is the boundary that keeps the firmware on the device.

PoC: StrTzz123/iot_vul.

GL.iNet shipped the fix in 4.8.1. The vendor's denial describes that fix. CVE-2026-11452 is what 4.4.5 still ships.