Skip to content
RCE Advisory Advanced CVE-2026-42021CVE-2026-42022CVE-2026-42023CVE-2026-42024

Totolink X2000R boa formIpv6Setup Static Network Configuration Stack-Based Buffer Overflow Vulnerabilities

Multiple stack-based buffer overflows exist in the boa web server's formIpv6Setup handler of the Totolink X2000R router, where HTTP POST parameters are copied without bounds checking into fixed-size stack buffers. An authenticated attacker can send a crafted request to overwrite the return address and achieve arbitrary code execution.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

Multiple exploitable stack-based buffer overflow vulnerabilities exist in the boa formWsc peerRptPin functionality of X2000R (version(s): TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327). A specially crafted HTTP request can lead to arbitrary code execution.

Lilith Wyatt, 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 boa web server copies HTTP POST parameter values into fixed-size stack buffers using an unchecked string copy function, without validating the input length.

Impact

An authenticated attacker could achieve arbitrary code execution on the router, potentially leading to full compromise of the device.

What the attacker needed

Authenticated access to the web interface

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.

A buffer overflow happens when a program copies more data into a fixed-size memory space than it can hold, so the extra data spills over and corrupts nearby memory. Here, the router's web server takes values from a form and copies them into small buffers on the stack without checking length, letting an attacker overwrite the return address and potentially run their own code. The attacker must already be logged in to the router's web interface to send the malicious request.

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 Wyatt

View all

28 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.