Skip to content
RCE Advisory Advanced CVE-2026-30818

Tp-Link Archer AX53 v1.0 dnsmasq configuration restore dhcpscript OS command injection vulnerability

The router's configuration restore feature accepts a dnsmasq option that names a script to run, and the certificate backup archive can be repacked to place an attacker-chosen script on the device. By combining the two, an authenticated attacker can run arbitrary commands on the router.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An os command injection vulnerability exists in the dnsmasq configuration restore dhcpscript functionality of Tp-Link Archer AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted configuration value can lead to arbitrary command execution.

Lilith >_>, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the restore process trusts values from the uploaded configuration and certificate archive without validating them, so a user-supplied dhcpscript path and a user-supplied script file are both accepted and executed.

Impact

An attacker with high privileges could execute arbitrary commands on the device, though the CVSS score notes the attack requires high privileges.

What the attacker needed

Admin access to the router; ability to upload a modified backup

The fix

The vendor released a patch, and users should update to the fixed firmware version.

How it was found

  1. Back up the router configuration from the web interface to obtain the encrypted binary file.
  2. Decrypt and unpack the backup to reach the readable configuration file.
  3. Add a dhcpscript entry pointing to a script path in the configuration.
  4. Decrypt and unpack the certificate backup, add a custom script, and repack it.
  5. Restore both modified files to the device so the script lands in the openvpn directory.
  6. Trigger the dhcpscript so the custom script runs and executes commands.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Routers let you save and reload their settings as a file. This report shows that one setting in that file tells the router to run a script, and a second file in the backup lets an attacker put their own script on the device. Together they let someone with admin access run any command on the router.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.