Authenticated memory corruption via unbounded sprintf
Published Nov 13, 2024 · Updated Mar 14, 2025
Stack overflow in the G3 web interface in Tenda G3 3.0 firmware 15.11.0.20 allows remote authenticated users to corrupt process memory. The formSetPortMapping handler passes the user-controlled portMappingServer, portMappingProtocol, and portMappingWan values to sprintf without a length limit. A valid login is required to post to /goform/setPortMapping, and the published proof of concept establishes memory corruption but not code execution.
Summary
What happened
Stack overflow in the G3 web interface in Tenda G3 3.0 firmware 15.11.0.20 allows remote authenticated users to corrupt process memory. The formSetPortMapping handler passes the user-controlled portMappingServer, portMappingProtocol, and portMappingWan values to sprintf without a length limit. A valid login is required to post to /goform/setPortMapping, and the published proof of concept establishes memory corruption but not code execution.
The record
- CVE
- CVE-2024-50854
- Published
- Nov 13, 2024
- Updated
- Mar 14, 2025
- Vendor
- Shenzhen Tenda Technology Co., Ltd.
- Product
- G3 QoS VPN Router
- Classifications
- CWE-787, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 13, 2024CVE publishedPublication date reported by the CVE source.
- Mar 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?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=v15.11.0.20
What conditions does exploitation require?
What is affected?
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
- Authenticated setPortMapping stack-overflow proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
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