CVE-2023-25112: CWE-121: Stack-based Buffer Overflow in Milesight UR32L
Multiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf pattern. A specially crafted HTTP request can lead to arbitrary code execution. An attacker with high privileges can send HTTP requests to trigger these vulnerabilities.This buffer overflow occurs in the set_l2tp function with the remote_subnet and the remote_mask variables.
AI Analysis
Technical Summary
CVE-2023-25112 is a stack-based buffer overflow vulnerability identified in the vtysh_ubus binary of the Milesight UR32L router firmware version 32.3.0.5. The root cause is the unsafe use of the sprintf function in the set_l2tp function, where the remote_subnet and remote_mask variables are handled without proper bounds checking. This allows an attacker with high privileges to craft malicious HTTP requests that overflow the buffer on the stack, overwriting adjacent memory and enabling arbitrary code execution. The vulnerability requires the attacker to have high privileges on the device, but no user interaction is needed beyond sending the HTTP request. The CVSS 3.1 base score is 7.2, reflecting high impact on confidentiality, integrity, and availability, with network attack vector, low attack complexity, and no user interaction. The vulnerability affects a critical network device used for routing and VPN services, which could be leveraged to disrupt network operations or gain persistent control over the device. Currently, no public exploits are known, and no patches have been linked, indicating the need for immediate vendor engagement and mitigation strategies.
Potential Impact
For European organizations, the exploitation of this vulnerability could lead to severe consequences including unauthorized control over network routing devices, interception or manipulation of sensitive data, and disruption of network availability. Given the central role of Milesight UR32L devices in network infrastructure, successful exploitation could compromise enterprise networks, critical infrastructure, and industrial control systems. This is particularly concerning for sectors such as telecommunications, energy, manufacturing, and government agencies that rely on secure and stable network connectivity. The ability to execute arbitrary code could allow attackers to establish persistent footholds, move laterally within networks, or launch further attacks. The high privileges required limit the attack surface but do not eliminate risk, especially in environments where internal threat actors or compromised credentials exist.
Mitigation Recommendations
Organizations should immediately inventory their network for the presence of Milesight UR32L devices running version 32.3.0.5. Since no official patches are currently linked, it is critical to engage with the vendor for updates or workarounds. In the interim, restrict administrative access to these devices to trusted personnel only and enforce strong authentication mechanisms. Network segmentation should be implemented to isolate vulnerable devices from less trusted network zones. Deploy web application firewalls or intrusion prevention systems capable of detecting and blocking malformed HTTP requests targeting the set_l2tp function. Regularly monitor device logs and network traffic for anomalous activity indicative of exploitation attempts. Additionally, consider disabling or limiting the HTTP management interface if not strictly necessary, or restrict it to specific IP addresses. Establish incident response plans specific to network device compromise scenarios.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland
CVE-2023-25112: CWE-121: Stack-based Buffer Overflow in Milesight UR32L
Description
Multiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf pattern. A specially crafted HTTP request can lead to arbitrary code execution. An attacker with high privileges can send HTTP requests to trigger these vulnerabilities.This buffer overflow occurs in the set_l2tp function with the remote_subnet and the remote_mask variables.
AI-Powered Analysis
Technical Analysis
CVE-2023-25112 is a stack-based buffer overflow vulnerability identified in the vtysh_ubus binary of the Milesight UR32L router firmware version 32.3.0.5. The root cause is the unsafe use of the sprintf function in the set_l2tp function, where the remote_subnet and remote_mask variables are handled without proper bounds checking. This allows an attacker with high privileges to craft malicious HTTP requests that overflow the buffer on the stack, overwriting adjacent memory and enabling arbitrary code execution. The vulnerability requires the attacker to have high privileges on the device, but no user interaction is needed beyond sending the HTTP request. The CVSS 3.1 base score is 7.2, reflecting high impact on confidentiality, integrity, and availability, with network attack vector, low attack complexity, and no user interaction. The vulnerability affects a critical network device used for routing and VPN services, which could be leveraged to disrupt network operations or gain persistent control over the device. Currently, no public exploits are known, and no patches have been linked, indicating the need for immediate vendor engagement and mitigation strategies.
Potential Impact
For European organizations, the exploitation of this vulnerability could lead to severe consequences including unauthorized control over network routing devices, interception or manipulation of sensitive data, and disruption of network availability. Given the central role of Milesight UR32L devices in network infrastructure, successful exploitation could compromise enterprise networks, critical infrastructure, and industrial control systems. This is particularly concerning for sectors such as telecommunications, energy, manufacturing, and government agencies that rely on secure and stable network connectivity. The ability to execute arbitrary code could allow attackers to establish persistent footholds, move laterally within networks, or launch further attacks. The high privileges required limit the attack surface but do not eliminate risk, especially in environments where internal threat actors or compromised credentials exist.
Mitigation Recommendations
Organizations should immediately inventory their network for the presence of Milesight UR32L devices running version 32.3.0.5. Since no official patches are currently linked, it is critical to engage with the vendor for updates or workarounds. In the interim, restrict administrative access to these devices to trusted personnel only and enforce strong authentication mechanisms. Network segmentation should be implemented to isolate vulnerable devices from less trusted network zones. Deploy web application firewalls or intrusion prevention systems capable of detecting and blocking malformed HTTP requests targeting the set_l2tp function. Regularly monitor device logs and network traffic for anomalous activity indicative of exploitation attempts. Additionally, consider disabling or limiting the HTTP management interface if not strictly necessary, or restrict it to specific IP addresses. Establish incident response plans specific to network device compromise scenarios.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- talos
- Date Reserved
- 2023-02-02T20:42:36.074Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a531b2a90255b94da5ea7
Added to database: 11/4/2025, 7:25:15 PM
Last enriched: 11/4/2025, 9:00:39 PM
Last updated: 11/6/2025, 2:00:54 PM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2024-5651: Improper Control of Generation of Code ('Code Injection')
HighCVE-2024-57520: n/a
CriticalCVE-2025-11268: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in wpchill Strong Testimonials
MediumCVE-2025-12360: CWE-285 Improper Authorization in codesolz Better Find and Replace – AI-Powered Suggestions
MediumCVE-2025-10259: CWE-1284 Improper Validation of Specified Quantity in Input in Mitsubishi Electric Corporation MELSEC iQ-F Series FX5U-32MT/ES
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.