Vulnerability researchCVE-2026-8913Jason Tang2 December 202613 min read

Journey to router command injection

What Neonix Security thought was a routine analysis of CVE-2026-8913, a command-injection bug in the TP-Link Archer MR600, evolved into a journey through carrier locks, a secondhand marketplace, and a bootloader reflash. Here's what happened.

Research map

V5Firmware diffEU 1.5 compared with the fixed EU 1.7 build
V2 · original unitCarrier-build analysisUpgrade rejection traced to the image identity header
V2 · second unitHands-on validationV2 1.10 behaviour confirmed on hardware
V3Static reviewCode path confirmed; no hardware test performed

The advisory

When we began this investigation, the TP-Link advisory described a WireGuard configuration command injection affecting the Archer MR600 V5. It listed EU_V5_1.7.0 (and JP_V5_1.2.0) as fixed. The advisory has since been updated to include other hardware generations; we'll return to that at the end. Our analysis focuses on EU builds.

TP-Link Archer MR600 router

We had an MR600 sitting in the lab — an opportunity to reproduce a live CVE on hardware we already owned.

A few things worth knowing about TP-Link before we go further, because all three matter later:

  1. They publish their firmware. Anyone can download it and upgrade, either automatically through the web UI or by uploading the image by hand.
  2. They keep old versions up. The support page carries not just the latest build but several prior ones, a gift for a researcher who wants to diff the code and see exactly what changed.
  3. Same model, different generations. The model number stays "MR600," but the hardware revision moves on over time: V1, V2, V3… up to the V5 named in the advisory. Same box on the shelf, genuinely different device inside.

Those first two points gave us the ideal setup. TP-Link lets us download EU_V5_1.5 (vulnerable) and EU_V5_1.7 (patched), so we could put the two side by side and examine the fix.

The diff

We found the patch in libcmm.so. The WireGuard client's config file is written one line per field by two functions — oal_wgvpn_genInterfaceConfClient (the [Interface] block) and oal_wgvpn_genPeerConfClient (the [Peer] block) — and both take the same shape in the vulnerable build. The vulnerable version builds each line by running a shell command echo; the patched version just writes to the file directly using fprintf. Here is a simplified reconstruction of oal_wgvpn_genInterfaceConfClient from the decompiled binaries:

Vulnerable — EU_V5_1.5
strcpy(path, '/var/wireguard/wgclient.conf');

util_execSystem(
  "echo [Interface] >> %s", path);
util_execSystem(
  "echo PrivateKey = %s >> %s",
  cfg->privateKey, path);
util_execSystem(
  "echo ListenPort = %d >> %s",
  cfg->listenPort, path);
Patched — EU_V5_1.7
strcpy(path, '/var/wireguard/wgclient.conf');

fp = fopen(path, "w");
fputs("[Interface]\n", fp);
fprintf(fp, "PrivateKey = %s\n",
  cfg->privateKey);
fprintf(fp, "ListenPort = %d\n",
  cfg->listenPort);
fclose(fp);

The privateKey field is one of several administrator-controlled text fields from the web UI that are vulnerable; oal_wgvpn_genPeerConfClient was rewritten the same way, covering Endpoint, PublicKey, AllowedIPs and PresharedKey.

So what does util_execSystem do with that command? Simplified from the decompilation, its relevant behaviour is:

int util_execSystem(const char *fmt, ...) {
    char buf[512];
    va_list args;
    va_start(args, fmt);
    vsnprintf(buf, 511, fmt, args);
    va_end(args);
    if (strchr(buf, ';') == NULL)   // check the input and reject ';'
        return system(buf);        // otherwise, run command (as root)
    return -1;
}

Therein lies the root of the problem: a check that looks only for semicolons and no other special characters. If the input passes, it's handed to system(), which runs it as root. So instead of a semicolon, put backticks in the WireGuard private key and whatever's inside them executes. In the patched EU_V5_1.7, these configuration writers no longer pass those fields to a shell.

Now that we grasp the bug and the fix, we'll want to reproduce it on real hardware. All that's left to do is download EU_V5_1.5, flash it, fire the proof-of-concept, then flash EU_V5_1.7 to confirm it's fixed. Simple, right?

The hurdle that leads to a discovery

This is where our analysis hit its first hurdle, and it should have been obvious: our MR600 did not accept EU_V5_1.5 and rightfully so, because ours is actually a V2; an older generation of the MR600 running firmware version 1.6. In the V2 line, 1.6 is not vulnerable because it doesn't even have WireGuard on it.

Firmware update page for our MR600 V2
The Firmware Upgrade page shows we are up to date on version 1.6 and the hardware version is V2 revision 3

This device has been superseded by V3 and V5 already. It's not a valid test device any more, right? Not quite.

In the V2 firmware we inspected, WireGuard first appears in EU_V2_1.9. That build is dated September 2025 but was published in April 2026. It remains present in EU_V2_1.10, published in June 2026. TP-Link was still releasing V2 firmware when we started this work.

When we inspected the WireGuard code in EU_V2_1.10, it still constructed shell commands from configuration fields, like the vulnerable EU_V5_1.5 build. The V5 fix was absent from this V2 release.

Our target shifted from reproducing the V5 bug to testing the same defect in V2 1.10, which the advisory did not mention at the time. Before notifying the vendor, we wanted to see it work.

So with our V2, it should just be a simple upgrade to EU_V2_1.10, right?

The carrier lock

Our second hurdle became apparent when our V2 would not accept a manual update to EU_V2_1.10. The upgrade page called its 1.6 firmware up to date, and the public image was rejected. The device had a carrier build rather than a published retail build. We initially suspected a region or special-version mismatch. A later check against the live device identified a different header field as the blocker.

We have some options:

  1. Modify the retail image's identity header and try the normal web upgrade. First we need to understand which parts the device authenticates.
  2. Use the carrier device's bootloader or a root shell to write EU_V2_1.10.
  3. Source a retail Archer MR600 V2 (somehow for a model that's no longer sold).

Option 1

We started with the web-upgrade route. The image carries identifiers for the intended device, so we looked for a way to change one without changing the firmware itself. The verifier checked an RSA signature. Changing signed code would require TP-Link's private key, so we set this route aside without checking whether the identity header was signed.

Later decompilation of the carrier build made the signed boundary clear. In libcmm.so, rsl_sys_verifyFirmware hashes the image from offset 0x200 and checks that digest against the vendor signature (simplified from Ghidra's output):

// rsl_sys_verifyFirmware @ 0x3839c, carrier build
param_1 = param_1 + 0x200;
// ... temporarily remove the signature bytes from the hashed region ...
cen_md5MakeDigest(&digest, param_1, router_size - 0x200);
valid = cen_rsaVerifySignByBase64EncodePublicKeyBlob(
    public_key, 200, &digest, 0x10, signature, 0x80);
if (valid != 1)
    return 0x1197;

The 512-byte header lies before that boundary. We returned to this overlooked detail after the hardware test.

Option 2

All we really need is a way in: a shell on the running system, or the bootloader underneath it — either lets us rewrite the firmware. Network-side, everything's closed except the web interface. The MR600 V2 PCB is already well-documented online, and that's our strongest lead — there should be a set of pads that give us UART access.

UART

We found the pads and tested them, but the logic analyser captured no serial output. With our setup, UART gave us no usable console on this unit.

The firmware also gave us a lead: the console credential in the older builds we inspected matched the one publicly documented for this board on TechInfoDepot. But that only mattered if we could reach a login prompt.

So we moved on to our next option. Option 3.

The second MR600 V2

We quickly sourced a second MR600 V2 from a secondhand seller (V2s are end-of-sale retail), but this time we had two criteria.

  1. We wanted a (EU) label MR600 V2.
  2. We wanted a device that was not originally supplied by an ISP, but bought retail.
MR600 V2 label with (EU) tag

Why the (EU) tag? We saw it on the labels of MR600s for sale, but not on our first unit. TP-Link also used (EU) in firmware filenames. We wondered whether the missing label explained why our unit rejected EU_V2_1.10, so we looked for a unit with the label. Buying from a retailer seemed to improve our chances of finding one that would accept the public firmware.

Admittedly, it was a stretch because we were wrong.

Back in the lab, we attempted to upgrade the second V2 to EU_V2_1.10 and discovered this one was carrier-locked too. The manual upgrade rejected EU_V2_1.10 just like the first. A couple of hard lessons fell out of that:

  • The (EU) label alone doesn't mean "not carrier-locked." Region and carrier status are different things. It's also possible the unit shipped retail and was carrier-locked later.
  • "Bought online" can quietly mean "refurbished carrier unit." Hunting a unit this old, that was always a risk — even online stores carry refurbished stock. And short of asking the seller to try to update the device and photograph the firmware page before we buy (which can be unreasonable coming from a random stranger online), there's no way to tell a carrier build just from the outside appearance.

We compared the base configuration between the old and new units through the API: the TR-069 data model came back identical — the same hash over all 1,524 parameters. On its own that wouldn't prove much, but both units also rejected the retail image. The second V2 was a Vodafone carrier build with an older hardware revision and firmware build: V2 revision 2 on 1.4.0, versus our original TPG unit's revision 3 on 1.6.0.

So where does that leave us? A V5 would let us recreate the known bug. V2 1.10 offered a way to test the same defect on hardware the advisory had not yet named.

What else could we do?

The break

Due diligence says: before writing the new unit off, map its attack surface and confirm it hasn't drifted from the first.

Network management ports: only the web interface open. Check.

Admin password: same one recovered. Check.

UART on the PCB: enabled?

UART is enabled on this V2

The logic analyser picked up fluctuations that looked like console activity on a serial line. We set the baud to 115200, added an ASCII decoder, and the word "U-Boot" scrolled past along with the other typical boot-up logs.

UART transmit channel activity
Decoded UART transmit channel

And just like that, we had our way in.

To rewind: we had already found that serial headers should have been exposed on MR600 V2s, but we captured no output from the first unit. On the second unit, we had a working console. What looked like a half-step backwards turned into a leap forward.

Interrupting the boot placed us at the U-Boot bootloader prompt; letting it run to the end dropped us at a login where, as expected, the public admin credential we recovered handed us a root shell.

The bootloader sat above the carrier lock that blocked our web-UI update attempts — so we could ignore both the lock and the root shell, and use the bootloader to overwrite the firmware with the one we chose.

A careful reflash later, straight from the bootloader (EU_V2_1.10, kernel and filesystem only, leaving the bootloader and the device's identity untouched), and the result is an Archer MR600 V2 running EU_V2_1.10. With WireGuard.

The proof

We already knew from the diff exactly what fields to target. The WireGuard client config takes a payload in the privateKey, publicKey or preSharedKey fields (around a 44-character budget), or up to about 129 characters via the endpoint field set through the web console's API instead of the form.

We entered this payload in the Private Key field to open a bind shell on port 4444:

`telnetd -p4444 -l/bin/sh`
WireGuard Private Key field containing the test payload

We also supplied dummy values for the other required WireGuard settings, then enabled the client entry. Enabling it triggered configuration generation and execution of the injected command.

We then connected to the open port from our machine on the LAN:

Shell on the MR600 showing UID 0

The shell reported UID 0, demonstrating that the router ran the injected command as root on this V2 test unit.

The impact

Firstly, this is an authenticated bug. Triggering it needs administrative access to the router's web interface, and the attacker has to be on the local network — the management interface isn't exposed to the internet by default.

The web interface presents configuration controls; this bug lets an administrator execute commands beneath them. On our V2 test unit, we demonstrated command execution as root. From that access, altering router configuration, disrupting service or changing how traffic is handled are plausible consequences, but those effects were not part of this proof.

Loose ends: the header route

After the bootloader reflash, we revisited the web-upgrade route. Reading the original TPG unit showed that its specialVer was EU, the same as the retail V2 image. Our earlier explanation of that unit's upload rejection was wrong. The field that differed was the 16-byte OemID in the image header. Error 4503, which we saw on the second unit, was not enough by itself to identify the failing check.

The carrier build's rsl_sys_verifyFirmware checks the image OemID at offset 0x24. rsl_dev_checkOemID decodes the unit's own X_TP_OemID and compares the 16 bytes. A mismatch returns 0x1197, which the web interface displays as error 4503 (simplified from Ghidra's output):

// rsl_sys_verifyFirmware @ 0x3839c, carrier build
if (rsl_dev_checkOemID(image + 0x24) == 0)
    return 0x1197;

// rsl_dev_checkOemID @ 0x396e0, carrier build
device_oem_id = decode_hex(X_TP_OemID);  // 16 bytes
return memcmp(image_oem_id, device_oem_id, 0x10) == 0;

OemID is in the first 0x200 bytes, outside the RSA-signed region. A separate whole-image MD5 check covers the header, but its digest can be recomputed. We changed the retail V2 image's OemID to match the original TPG unit and recomputed that digest, leaving the signed kernel and filesystem bytes unchanged. This time we used the normal web-upgrade path: the modified image passed verification, the upgrade completed, and the unit rebooted into retail V2 1.10. The earlier WireGuard proof had used the second unit, flashed through U-Boot; this later test established that changing the unsigned OemID header could also get the stock retail build onto our carrier unit. It did not show that the router would accept modified executable firmware.

Recommendation

TP-Link's updated advisory lists fixed builds for all three affected hardware generations: V5 EU_V5_1.7.0, V2 1.12.0 Build 260826, and V3 1.4.0 Build 260827. Owners should use the firmware for their hardware revision and purchase region.

For devices awaiting an applicable update:

  • Set a strong, non-default admin password and limit who holds it. The bug requires administrative access.
  • Disable remote (WAN) management if enabled.
  • If a carrier build rejects the public update, seek a matching update from the carrier or TP-Link.

Wrapping up

What started as a reproduction exercise became a check across hardware generations. When we tested, V5 had a fix but V2 1.10 still contained the vulnerable WireGuard code; our carrier-provisioned V2 gave us hardware on which to demonstrate it. We reported the V2 result to TP-Link. The advisory was updated on 3 November 2026 to include V2 and V3 and to name their fixed builds.

We also checked V3 EU_V3_1.3.0. Decompilation showed its WireGuard configuration path reached system(), but we had no V3 hardware to test. The hands-on proof in this post is from V2 1.10.

What we learned

The MR600 model name did not tell us which code a device ran. V5 1.7 had removed the WireGuard shell command, while the V2 1.10 and V3 1.3 builds we inspected still contained it. Checking each hardware generation mattered, even though TP-Link later released fixes for V2 and V3.

A silent UART capture on the first V2 told us what happened with that unit and our setup. It did not predict the second unit: its console was accessible and gave us the bootloader route we needed for the hardware test.

The firmware signature also covered less than we first assumed. It authenticated the executable payload, while the OemID header field that blocked the retail upgrade sat outside the signed region. Following that boundary led us back to the normal web-upgrade route.

Sometimes the bug is the easy part. Getting to a point where we can actually test it — that's the adventure.

The talk: Ruxmon Melbourne

Jason presented this work at Ruxmon Melbourne on Friday 27 November 2026, the monthly Ruxcon community talk night at RMIT Building 80, 445 Swanston Street. The talk follows the same route as this write-up: the V5 firmware diff, the two carrier-locked V2 units, the UART discovery and the bootloader reflash that made the hardware test possible.

The slide deck is available here: Ruxmon Nov 2026 — Journey to router command injection (PDF, 50 slides).

References

Neonix Security

More research