CVE-2023-25116: 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_openvpn_client function with the local_virtual_ip and the remote_virtual_ip variables.
AI Analysis
Technical Summary
CVE-2023-25116 is a stack-based buffer overflow vulnerability identified in the Milesight UR32L device firmware version v32.3.0.5. The vulnerability exists in the vtysh_ubus binary, specifically within the set_openvpn_client function, which processes local_virtual_ip and remote_virtual_ip parameters. The root cause is the unsafe use of the sprintf function, which does not perform bounds checking, allowing an attacker to overflow the stack buffer by sending specially crafted HTTP requests. Exploitation requires the attacker to have high privileges on the device, as they must send HTTP requests to the vulnerable service. Successful exploitation can lead to arbitrary code execution, compromising the device’s confidentiality, integrity, and availability. This could allow attackers to execute malicious code remotely, potentially gaining control over the device or disrupting network operations. The vulnerability is classified under CWE-121 (stack-based buffer overflow) and has a CVSS v3.1 base score of 7.2, indicating high severity. Although no public exploits are currently reported, the nature of the vulnerability and its impact make it a significant risk. The affected product, Milesight UR32L, is a network edge device often used in industrial and enterprise environments, making the vulnerability relevant for organizations relying on these devices for secure VPN connectivity and network management.
Potential Impact
For European organizations, the impact of CVE-2023-25116 can be substantial. Compromise of Milesight UR32L devices could lead to unauthorized access to internal networks, interception or manipulation of sensitive data, and disruption of critical network services. Given that these devices often serve as VPN gateways or network edge routers, exploitation could provide attackers with a foothold to pivot into deeper network segments. This is particularly concerning for sectors such as energy, manufacturing, transportation, and government agencies that rely on secure and reliable network infrastructure. The potential for arbitrary code execution means attackers could deploy persistent malware, disrupt operations, or exfiltrate confidential information. The requirement for high privileges to exploit somewhat limits the attack surface but does not eliminate risk, especially if internal threat actors or compromised credentials are involved. The absence of known exploits in the wild currently reduces immediate risk but does not preclude future exploitation attempts.
Mitigation Recommendations
1. Immediate mitigation should focus on upgrading the Milesight UR32L firmware to a version where this vulnerability is patched; if no patch is available, contact the vendor for guidance or workarounds. 2. Restrict access to the device’s HTTP management interface to trusted networks and users only, employing network segmentation and firewall rules to limit exposure. 3. Implement strict access controls and monitor for unusual HTTP requests targeting the vtysh_ubus service, using intrusion detection/prevention systems with custom signatures if possible. 4. Enforce strong authentication and credential management to reduce the risk of privilege escalation that would enable exploitation. 5. Regularly audit device configurations and logs for signs of exploitation attempts or anomalous activity. 6. Consider deploying network-level protections such as web application firewalls (WAFs) that can detect and block malformed HTTP requests targeting this vulnerability. 7. Establish incident response plans that include this vulnerability to ensure rapid containment and remediation if exploitation is detected.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium, Sweden, Finland
CVE-2023-25116: 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_openvpn_client function with the local_virtual_ip and the remote_virtual_ip variables.
AI-Powered Analysis
Technical Analysis
CVE-2023-25116 is a stack-based buffer overflow vulnerability identified in the Milesight UR32L device firmware version v32.3.0.5. The vulnerability exists in the vtysh_ubus binary, specifically within the set_openvpn_client function, which processes local_virtual_ip and remote_virtual_ip parameters. The root cause is the unsafe use of the sprintf function, which does not perform bounds checking, allowing an attacker to overflow the stack buffer by sending specially crafted HTTP requests. Exploitation requires the attacker to have high privileges on the device, as they must send HTTP requests to the vulnerable service. Successful exploitation can lead to arbitrary code execution, compromising the device’s confidentiality, integrity, and availability. This could allow attackers to execute malicious code remotely, potentially gaining control over the device or disrupting network operations. The vulnerability is classified under CWE-121 (stack-based buffer overflow) and has a CVSS v3.1 base score of 7.2, indicating high severity. Although no public exploits are currently reported, the nature of the vulnerability and its impact make it a significant risk. The affected product, Milesight UR32L, is a network edge device often used in industrial and enterprise environments, making the vulnerability relevant for organizations relying on these devices for secure VPN connectivity and network management.
Potential Impact
For European organizations, the impact of CVE-2023-25116 can be substantial. Compromise of Milesight UR32L devices could lead to unauthorized access to internal networks, interception or manipulation of sensitive data, and disruption of critical network services. Given that these devices often serve as VPN gateways or network edge routers, exploitation could provide attackers with a foothold to pivot into deeper network segments. This is particularly concerning for sectors such as energy, manufacturing, transportation, and government agencies that rely on secure and reliable network infrastructure. The potential for arbitrary code execution means attackers could deploy persistent malware, disrupt operations, or exfiltrate confidential information. The requirement for high privileges to exploit somewhat limits the attack surface but does not eliminate risk, especially if internal threat actors or compromised credentials are involved. The absence of known exploits in the wild currently reduces immediate risk but does not preclude future exploitation attempts.
Mitigation Recommendations
1. Immediate mitigation should focus on upgrading the Milesight UR32L firmware to a version where this vulnerability is patched; if no patch is available, contact the vendor for guidance or workarounds. 2. Restrict access to the device’s HTTP management interface to trusted networks and users only, employing network segmentation and firewall rules to limit exposure. 3. Implement strict access controls and monitor for unusual HTTP requests targeting the vtysh_ubus service, using intrusion detection/prevention systems with custom signatures if possible. 4. Enforce strong authentication and credential management to reduce the risk of privilege escalation that would enable exploitation. 5. Regularly audit device configurations and logs for signs of exploitation attempts or anomalous activity. 6. Consider deploying network-level protections such as web application firewalls (WAFs) that can detect and block malformed HTTP requests targeting this vulnerability. 7. Establish incident response plans that include this vulnerability to ensure rapid containment and remediation if exploitation is detected.
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.076Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a531b2a90255b94da5eb7
Added to database: 11/4/2025, 7:25:15 PM
Last enriched: 11/4/2025, 8:50:55 PM
Last updated: 11/6/2025, 1:57:05 PM
Views: 4
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.