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

Totolink X2000R batchupg stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the batchupg binary of the Totolink X2000R router, triggered by a crafted UDP broadcast packet. An authenticated attacker can send such a packet to execute arbitrary code on the device.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the batchupg 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 csid field from a UDP broadcast packet is copied into a fixed-size stack buffer using sprintf without bounds checking.

Impact

An authenticated attacker could execute arbitrary code on the router, potentially leading to full compromise.

What the attacker needed

Authentication to the web interface; ability to send UDP broadcast packets to port 13977

How it was found

  1. Authenticate to the router's web interface and submit the formBuploadSetting page with a chosen fw_key value.
  2. This writes the fw_key into /tmp/firware.ini and starts the batchupg binary.
  3. Craft a UDP broadcast packet containing the magic value, a different svn, a non-default MAC address, and the same csid as fw_key.
  4. Send the packet to the broadcast socket on port 13977.
  5. The batchupg binary processes the packet and overflows the stack buffer with the csid value.

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 router runs a small program that listens for special network messages. The program copies part of the message into a fixed-size memory area without checking length, so a long message spills over and can overwrite the program's control data, letting an attacker run their own code.

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.