CVE-2023-25091: 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 handle_interface_acl function with the interface variable when out_acl is -1.
AI Analysis
Technical Summary
CVE-2023-25091 is a stack-based buffer overflow vulnerability classified under CWE-121, found in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The vulnerability stems from the unsafe use of the sprintf function in the handle_interface_acl function, specifically when the out_acl parameter is set to -1, which causes improper handling of the interface variable. This flaw allows an attacker with high privileges to send specially crafted HTTP requests to the device, triggering the buffer overflow and enabling arbitrary code execution. The vulnerability affects the device's confidentiality, integrity, and availability, as an attacker could execute malicious code remotely without user interaction. The attack vector is network-based (AV:N), with low attack complexity (AC:L), but requires high privileges (PR:H). The scope is unchanged (S:U), and the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H). No patches or mitigations are currently linked, and no known exploits have been observed in the wild. This vulnerability is critical for environments relying on Milesight UR32L devices, often used in industrial, IoT, and network infrastructure contexts, where exploitation could lead to full device compromise and lateral movement within networks.
Potential Impact
For European organizations, exploitation of CVE-2023-25091 could lead to severe consequences including unauthorized control over Milesight UR32L devices, which are commonly deployed in industrial control systems, IoT networks, and enterprise environments. Successful exploitation could result in data breaches, disruption of network services, and potential pivoting to other critical infrastructure components. Given the device’s role in network management and security, attackers could manipulate network traffic, disable security controls, or cause denial of service. The requirement for high privileges limits the attack surface somewhat, but insider threats or compromised credentials could enable exploitation. The impact is particularly significant for sectors such as manufacturing, energy, transportation, and critical infrastructure operators across Europe, where these devices may be integral to operational technology (OT) environments. The absence of known exploits currently provides a window for proactive defense, but the high severity score underscores the urgency of mitigation.
Mitigation Recommendations
European organizations should immediately inventory their network for Milesight UR32L devices running firmware version 32.3.0.5 and restrict access to the device management interfaces to trusted administrators only. Network segmentation should be enforced to isolate these devices from general user networks and limit exposure to potential attackers. Implement strict access controls and multi-factor authentication for all privileged accounts to reduce the risk of credential compromise. Monitor network traffic for unusual HTTP requests targeting the vtysh_ubus binary or anomalous behavior indicative of exploitation attempts. Since no official patch is currently linked, consider deploying virtual patching via intrusion prevention systems (IPS) to detect and block exploit attempts targeting the vulnerable function. Engage with the vendor for firmware updates or security advisories and plan for timely patch deployment once available. Additionally, conduct regular security audits and penetration tests focusing on OT and IoT devices to identify and remediate similar vulnerabilities proactively.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium, Sweden, Finland
CVE-2023-25091: 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 handle_interface_acl function with the interface variable when out_acl is -1.
AI-Powered Analysis
Technical Analysis
CVE-2023-25091 is a stack-based buffer overflow vulnerability classified under CWE-121, found in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The vulnerability stems from the unsafe use of the sprintf function in the handle_interface_acl function, specifically when the out_acl parameter is set to -1, which causes improper handling of the interface variable. This flaw allows an attacker with high privileges to send specially crafted HTTP requests to the device, triggering the buffer overflow and enabling arbitrary code execution. The vulnerability affects the device's confidentiality, integrity, and availability, as an attacker could execute malicious code remotely without user interaction. The attack vector is network-based (AV:N), with low attack complexity (AC:L), but requires high privileges (PR:H). The scope is unchanged (S:U), and the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H). No patches or mitigations are currently linked, and no known exploits have been observed in the wild. This vulnerability is critical for environments relying on Milesight UR32L devices, often used in industrial, IoT, and network infrastructure contexts, where exploitation could lead to full device compromise and lateral movement within networks.
Potential Impact
For European organizations, exploitation of CVE-2023-25091 could lead to severe consequences including unauthorized control over Milesight UR32L devices, which are commonly deployed in industrial control systems, IoT networks, and enterprise environments. Successful exploitation could result in data breaches, disruption of network services, and potential pivoting to other critical infrastructure components. Given the device’s role in network management and security, attackers could manipulate network traffic, disable security controls, or cause denial of service. The requirement for high privileges limits the attack surface somewhat, but insider threats or compromised credentials could enable exploitation. The impact is particularly significant for sectors such as manufacturing, energy, transportation, and critical infrastructure operators across Europe, where these devices may be integral to operational technology (OT) environments. The absence of known exploits currently provides a window for proactive defense, but the high severity score underscores the urgency of mitigation.
Mitigation Recommendations
European organizations should immediately inventory their network for Milesight UR32L devices running firmware version 32.3.0.5 and restrict access to the device management interfaces to trusted administrators only. Network segmentation should be enforced to isolate these devices from general user networks and limit exposure to potential attackers. Implement strict access controls and multi-factor authentication for all privileged accounts to reduce the risk of credential compromise. Monitor network traffic for unusual HTTP requests targeting the vtysh_ubus binary or anomalous behavior indicative of exploitation attempts. Since no official patch is currently linked, consider deploying virtual patching via intrusion prevention systems (IPS) to detect and block exploit attempts targeting the vulnerable function. Engage with the vendor for firmware updates or security advisories and plan for timely patch deployment once available. Additionally, conduct regular security audits and penetration tests focusing on OT and IoT devices to identify and remediate similar vulnerabilities proactively.
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.070Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a53172a90255b94da5e39
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:14:50 PM
Last updated: 11/6/2025, 2:14:51 PM
Views: 1
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.