Skip to content
Memory corruption Advisory Advanced CVE-2026-41222

Totolink X2000R boa formParentControl url stack-based buffer overflow vulnerability

The router's web server copies a user-supplied URL parameter into a fixed-size stack buffer without any length check, so an oversized value overflows the stack. An authenticated attacker could send a crafted HTTP request to corrupt memory and potentially execute arbitrary code.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the boa formParentControl url 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

The formParentControl handler copies the url%d POST parameter into a fixed 256-byte stack buffer with strcpy and no bounds check.

Impact

An authenticated attacker could achieve arbitrary code execution on the device, though the report only demonstrates a crash with a corrupted program counter.

What the attacker needed

Valid admin login on the router; network access to the web interface

How it was found

  1. Log in to the router's web interface via the login page.
  2. Send a POST request to the parental control form page with a urlNum value and a matching url1 parameter containing an oversized string.
  3. Observe the stack buffer overflow and crash or control of the program counter.

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.

The router's admin web page takes text you type in and stores it in a small fixed-size space in memory. If you send far more text than that space can hold, it spills over into neighbouring memory and can crash the program or let an attacker run their own code. The attacker first has to log in to the router's admin interface.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.