CVE-2023-25096: 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_qos function with the rule_name variable with two possible format strings.
AI Analysis
Technical Summary
CVE-2023-25096 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 within the set_qos function, specifically involving the rule_name variable that can be manipulated with two different format strings. This improper handling of input data leads to a buffer overflow condition, which can be exploited by an attacker with high privileges on the device by sending specially crafted HTTP requests. Successful exploitation allows arbitrary code execution, potentially enabling the attacker to take full control of the device, disrupt its operation, or pivot into the internal network. The vulnerability requires no user interaction but does require the attacker to have high privileges, which may be obtained through other means or insider access. The CVSS v3.1 base score is 7.2, reflecting the network attack vector, low attack complexity, required privileges, and high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the nature of the vulnerability makes it a critical concern for organizations relying on this device for network connectivity or security functions.
Potential Impact
For European organizations, the impact of this vulnerability can be severe. The Milesight UR32L is used in various network environments, including industrial, enterprise, and critical infrastructure sectors. Exploitation could lead to unauthorized control over network devices, enabling attackers to intercept or manipulate sensitive data, disrupt network services, or launch further attacks within the network. This can compromise confidentiality, integrity, and availability of critical systems. Given the device’s role in network management, an attacker could also disable security controls or create persistent backdoors. The disruption of network services could affect business continuity and critical operations, especially in sectors like manufacturing, energy, and telecommunications. The requirement for high privileges limits the attack surface but does not eliminate risk, as privilege escalation or insider threats could facilitate exploitation. The absence of public exploits currently provides a window for mitigation before widespread attacks occur.
Mitigation Recommendations
European organizations should immediately assess their deployment of Milesight UR32L devices and verify firmware versions. Since no official patches are listed, organizations should contact Milesight support for updates or advisories. In the interim, restrict access to the device management interfaces to trusted networks and users only, employing network segmentation and strict firewall rules to limit exposure. Implement strong authentication and monitor for unusual HTTP requests targeting the vtysh_ubus service. Employ intrusion detection systems to detect anomalous traffic patterns indicative of exploitation attempts. Regularly audit device configurations and logs for signs of compromise. Consider deploying compensating controls such as application-layer firewalls or reverse proxies to sanitize incoming requests. Finally, develop an incident response plan specific to network device compromise scenarios to minimize impact if exploitation occurs.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland
CVE-2023-25096: 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_qos function with the rule_name variable with two possible format strings.
AI-Powered Analysis
Technical Analysis
CVE-2023-25096 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 within the set_qos function, specifically involving the rule_name variable that can be manipulated with two different format strings. This improper handling of input data leads to a buffer overflow condition, which can be exploited by an attacker with high privileges on the device by sending specially crafted HTTP requests. Successful exploitation allows arbitrary code execution, potentially enabling the attacker to take full control of the device, disrupt its operation, or pivot into the internal network. The vulnerability requires no user interaction but does require the attacker to have high privileges, which may be obtained through other means or insider access. The CVSS v3.1 base score is 7.2, reflecting the network attack vector, low attack complexity, required privileges, and high impact on confidentiality, integrity, and availability. Although no known exploits are currently reported in the wild, the nature of the vulnerability makes it a critical concern for organizations relying on this device for network connectivity or security functions.
Potential Impact
For European organizations, the impact of this vulnerability can be severe. The Milesight UR32L is used in various network environments, including industrial, enterprise, and critical infrastructure sectors. Exploitation could lead to unauthorized control over network devices, enabling attackers to intercept or manipulate sensitive data, disrupt network services, or launch further attacks within the network. This can compromise confidentiality, integrity, and availability of critical systems. Given the device’s role in network management, an attacker could also disable security controls or create persistent backdoors. The disruption of network services could affect business continuity and critical operations, especially in sectors like manufacturing, energy, and telecommunications. The requirement for high privileges limits the attack surface but does not eliminate risk, as privilege escalation or insider threats could facilitate exploitation. The absence of public exploits currently provides a window for mitigation before widespread attacks occur.
Mitigation Recommendations
European organizations should immediately assess their deployment of Milesight UR32L devices and verify firmware versions. Since no official patches are listed, organizations should contact Milesight support for updates or advisories. In the interim, restrict access to the device management interfaces to trusted networks and users only, employing network segmentation and strict firewall rules to limit exposure. Implement strong authentication and monitor for unusual HTTP requests targeting the vtysh_ubus service. Employ intrusion detection systems to detect anomalous traffic patterns indicative of exploitation attempts. Regularly audit device configurations and logs for signs of compromise. Consider deploying compensating controls such as application-layer firewalls or reverse proxies to sanitize incoming requests. Finally, develop an incident response plan specific to network device compromise scenarios to minimize impact if exploitation occurs.
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.071Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a53172a90255b94da5e4d
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:05:16 PM
Last updated: 11/6/2025, 1:37:10 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.