Knowledge Base

CVE-2024-5035

Updated 26 May 2026

Background

TP-Link Archer C5400X rftest RCE

  1. CVSS
    8.8High
  2. VECTOR
    CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:H
  3. IMPACT
    Remote code execution
  1. AFFECTED
    Archer C5400X≤1.1.6< 1.1.7 (Build 20240510)

The TP-Link Archer C5400X exposes the rftest binary as a network service on TCP ports 8888, 8889, and 8890. The service restricts accepted commands to those beginning with wl or nvram get, but this restriction can be trivially bypassed by injecting additional commands after shell metacharacters — allowing unauthenticated remote code execution from the local network.

Discovered by ONEKEY Research.

Reproduction

POC || GTFO

The command filter blocks anything that doesn't start with wl or nvram get, but shell metacharacters (;, &, |) break out of the restriction:

zsh
echo "wl;id;" | nc <target> 8888

The author notes difficulty reproducing this on comparable TP-Link devices, and FirmAE does not support emulation of the Archer C5400X model.

References

Further reading