CVE-2023-25097: 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 attach_class variable.
AI Analysis
Technical Summary
CVE-2023-25097 is a stack-based buffer overflow vulnerability identified in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The root cause is the unsafe use of the sprintf function in the set_qos function, particularly related to the attach_class variable. This unsafe pattern allows an attacker with high privileges to craft malicious HTTP requests that overflow the stack buffer, leading to arbitrary code execution. The vulnerability is classified under CWE-121, indicating a classic stack-based buffer overflow. Exploitation requires the attacker to have high privileges on the device, but no user interaction is needed once privileges are obtained. The vulnerability affects the confidentiality, integrity, and availability of the device, as arbitrary code execution could allow attackers to manipulate device configurations, intercept or disrupt network traffic, or cause denial of service. The CVSS v3.1 base score is 7.2, reflecting a high severity with network attack vector, low attack complexity, and no user interaction. While no public exploits are reported, the critical nature of the device in network infrastructure makes this vulnerability a significant risk. The lack of available patches at the time of reporting necessitates immediate mitigation efforts.
Potential Impact
For European organizations, the impact of this vulnerability can be substantial. Milesight UR32L devices are used in network routing and management, often in critical infrastructure, industrial environments, and enterprise networks. Successful exploitation could allow attackers to gain control over network routing functions, leading to interception or manipulation of sensitive data, disruption of network services, or pivoting to other internal systems. This could compromise data confidentiality and integrity, disrupt business operations, and potentially cause regulatory compliance issues under GDPR if personal data is affected. The requirement for high privileges to exploit somewhat limits the attack surface but does not eliminate risk, especially if internal threat actors or attackers who have gained initial access escalate privileges. The absence of known exploits in the wild reduces immediate risk but should not lead to complacency given the potential impact.
Mitigation Recommendations
European organizations should immediately audit their network environments to identify any Milesight UR32L devices running firmware version 32.3.0.5. Since no patches are currently available, organizations should implement compensating controls such as restricting administrative access to these devices to trusted personnel and networks only, using network segmentation to isolate vulnerable devices, and monitoring HTTP traffic to detect anomalous or malformed requests targeting the vtysh_ubus service. Employ strict access controls and multi-factor authentication for device management interfaces to reduce the risk of privilege escalation. Additionally, organizations should engage with Milesight support to obtain updates on patch availability and apply firmware updates as soon as they are released. Regular vulnerability scanning and penetration testing should include checks for this vulnerability. Incident response plans should be updated to address potential exploitation scenarios involving these devices.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland
CVE-2023-25097: 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 attach_class variable.
AI-Powered Analysis
Technical Analysis
CVE-2023-25097 is a stack-based buffer overflow vulnerability identified in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The root cause is the unsafe use of the sprintf function in the set_qos function, particularly related to the attach_class variable. This unsafe pattern allows an attacker with high privileges to craft malicious HTTP requests that overflow the stack buffer, leading to arbitrary code execution. The vulnerability is classified under CWE-121, indicating a classic stack-based buffer overflow. Exploitation requires the attacker to have high privileges on the device, but no user interaction is needed once privileges are obtained. The vulnerability affects the confidentiality, integrity, and availability of the device, as arbitrary code execution could allow attackers to manipulate device configurations, intercept or disrupt network traffic, or cause denial of service. The CVSS v3.1 base score is 7.2, reflecting a high severity with network attack vector, low attack complexity, and no user interaction. While no public exploits are reported, the critical nature of the device in network infrastructure makes this vulnerability a significant risk. The lack of available patches at the time of reporting necessitates immediate mitigation efforts.
Potential Impact
For European organizations, the impact of this vulnerability can be substantial. Milesight UR32L devices are used in network routing and management, often in critical infrastructure, industrial environments, and enterprise networks. Successful exploitation could allow attackers to gain control over network routing functions, leading to interception or manipulation of sensitive data, disruption of network services, or pivoting to other internal systems. This could compromise data confidentiality and integrity, disrupt business operations, and potentially cause regulatory compliance issues under GDPR if personal data is affected. The requirement for high privileges to exploit somewhat limits the attack surface but does not eliminate risk, especially if internal threat actors or attackers who have gained initial access escalate privileges. The absence of known exploits in the wild reduces immediate risk but should not lead to complacency given the potential impact.
Mitigation Recommendations
European organizations should immediately audit their network environments to identify any Milesight UR32L devices running firmware version 32.3.0.5. Since no patches are currently available, organizations should implement compensating controls such as restricting administrative access to these devices to trusted personnel and networks only, using network segmentation to isolate vulnerable devices, and monitoring HTTP traffic to detect anomalous or malformed requests targeting the vtysh_ubus service. Employ strict access controls and multi-factor authentication for device management interfaces to reduce the risk of privilege escalation. Additionally, organizations should engage with Milesight support to obtain updates on patch availability and apply firmware updates as soon as they are released. Regular vulnerability scanning and penetration testing should include checks for this vulnerability. Incident response plans should be updated to address potential exploitation scenarios involving these devices.
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.072Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a53172a90255b94da5e51
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:05:04 PM
Last updated: 11/6/2025, 12:10:01 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-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
MediumCVE-2025-12471: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nerdpressteam Hubbub Lite – Fast, free social sharing and follow buttons
MediumCVE-2025-9338: CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer in ASUS Armoury Crate
HighActions
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.