Unauthenticated code execution via oversized HTTP POST
Published Oct 15, 2022 · Updated May 14, 2025
Memory corruption in the RouterOS Webfig web server before Stable 6.38.5 and Long-term 6.37.5 allows remote attackers to execute code. The www process uses the HTTP Content-Length value to allocate POST data on a per-thread stack without bounding it to that stack, allowing one request to overwrite a neighboring thread's saved return address. Exploitation requires the www service to be reachable on TCP port 80; successful exploitation runs attacker-selected commands on the router.
Summary
What happened
Memory corruption in the RouterOS Webfig web server before Stable 6.38.5 and Long-term 6.37.5 allows remote attackers to execute code. The www process uses the HTTP Content-Length value to allocate POST data on a per-thread stack without bounding it to that stack, allowing one request to overwrite a neighboring thread's saved return address. Exploitation requires the www service to be reachable on TCP port 80; successful exploitation runs attacker-selected commands on the router.
The record
- CVE
- CVE-2017-20149
- Published
- Oct 15, 2022
- Updated
- May 14, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 1, 2017Exploitation reportedMalicious-tool exploitation of RouterOS Webfig
- Oct 15, 2022CVE publishedPublication date reported by the CVE source.
- May 14, 2025Record updatedLatest update available in the CVE record.
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.
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
- Chimay-Red working exploitfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- Hajime botnet scanning and exploitationbotnet
- Malicious-tool exploitation of RouterOS Webfigreported 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