Root command execution via hidden debug CGI
Published Jul 11, 2025 · Updated Jul 19, 2025
Command injection in TOTOLINK N300RB firmware 8.54 allows remote attackers to execute arbitrary OS commands as root through a debug CGI. The /cgi-bin/d.cgi route appends the cmd parameter to an output-redirection string and passes the result to system(), while a hard-coded parameter acts as its only secret. Access requires the hidden feature to be enabled and the static secret to be supplied from an adjacent network, yielding root command execution and file reads.
Summary
What happened
Command injection in TOTOLINK N300RB firmware 8.54 allows remote attackers to execute arbitrary OS commands as root through a debug CGI. The /cgi-bin/d.cgi route appends the cmd parameter to an output-redirection string and passes the result to system(), while a hard-coded parameter acts as its only secret. Access requires the hidden feature to be enabled and the static secret to be supplied from an adjacent network, yielding root command execution and file reads.
The record
- CVE
- CVE-2025-52089
- Published
- Jul 11, 2025
- Updated
- Jul 19, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-306, T1059.004
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 11, 2025CVE publishedPublication date reported by the CVE source.
- Jul 19, 2025Record updatedLatest update available in the CVE record.
- Oct 19, 2025Exploitation reportedRondoDox botnet exploitation activity
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Hidden debug CGI command-execution procedurefunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo