CVE-2023-25100: 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 default_class variable.
AI Analysis
Technical Summary
CVE-2023-25100 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 root cause is the unsafe use of the sprintf function within the set_qos function, particularly when handling the default_class variable. This unsafe coding practice allows an attacker with high privileges to craft a malicious HTTP request that overflows the buffer, overwriting adjacent memory on the stack. This can lead to arbitrary code execution, enabling the attacker to execute malicious payloads with the privileges of the vulnerable process. The vulnerability requires the attacker to have high-level privileges on the device, but does not require user interaction. The CVSS v3.1 base score is 7.2, reflecting high severity due to network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability. No public exploits or patches have been reported as of the publication date, but the vulnerability poses a significant risk to devices running the affected firmware version.
Potential Impact
For European organizations, exploitation of this vulnerability could lead to full compromise of Milesight UR32L devices, which are often used in industrial, telecommunications, and enterprise network environments. Successful exploitation could allow attackers to execute arbitrary code, potentially leading to unauthorized access, data exfiltration, disruption of network services, or pivoting to other internal systems. This could impact critical infrastructure sectors such as energy, manufacturing, and transportation, where these devices may be deployed. The high privileges required for exploitation somewhat limit the attack surface but insider threats or compromised administrative accounts could facilitate attacks. The lack of known exploits in the wild currently reduces immediate risk, but the potential impact remains significant if exploited.
Mitigation Recommendations
European organizations should immediately identify any Milesight UR32L devices running firmware version 32.3.0.5 and restrict administrative access to trusted personnel only. Network segmentation should be enforced to isolate these devices from untrusted networks and limit exposure to potential attackers. Employ strict access controls and multi-factor authentication for device management interfaces to reduce the risk of privilege escalation. Monitor network traffic for anomalous HTTP requests targeting the vtysh_ubus service. Since no official patch is currently available, consider deploying Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) with custom rules to detect and block suspicious payloads targeting the set_qos function. Engage with the vendor for firmware updates or security advisories and plan for timely patch deployment once available. Regularly audit device configurations and logs for signs of compromise.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium
CVE-2023-25100: 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 default_class variable.
AI-Powered Analysis
Technical Analysis
CVE-2023-25100 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 root cause is the unsafe use of the sprintf function within the set_qos function, particularly when handling the default_class variable. This unsafe coding practice allows an attacker with high privileges to craft a malicious HTTP request that overflows the buffer, overwriting adjacent memory on the stack. This can lead to arbitrary code execution, enabling the attacker to execute malicious payloads with the privileges of the vulnerable process. The vulnerability requires the attacker to have high-level privileges on the device, but does not require user interaction. The CVSS v3.1 base score is 7.2, reflecting high severity due to network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability. No public exploits or patches have been reported as of the publication date, but the vulnerability poses a significant risk to devices running the affected firmware version.
Potential Impact
For European organizations, exploitation of this vulnerability could lead to full compromise of Milesight UR32L devices, which are often used in industrial, telecommunications, and enterprise network environments. Successful exploitation could allow attackers to execute arbitrary code, potentially leading to unauthorized access, data exfiltration, disruption of network services, or pivoting to other internal systems. This could impact critical infrastructure sectors such as energy, manufacturing, and transportation, where these devices may be deployed. The high privileges required for exploitation somewhat limit the attack surface but insider threats or compromised administrative accounts could facilitate attacks. The lack of known exploits in the wild currently reduces immediate risk, but the potential impact remains significant if exploited.
Mitigation Recommendations
European organizations should immediately identify any Milesight UR32L devices running firmware version 32.3.0.5 and restrict administrative access to trusted personnel only. Network segmentation should be enforced to isolate these devices from untrusted networks and limit exposure to potential attackers. Employ strict access controls and multi-factor authentication for device management interfaces to reduce the risk of privilege escalation. Monitor network traffic for anomalous HTTP requests targeting the vtysh_ubus service. Since no official patch is currently available, consider deploying Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS) with custom rules to detect and block suspicious payloads targeting the set_qos function. Engage with the vendor for firmware updates or security advisories and plan for timely patch deployment once available. Regularly audit device configurations and logs for signs of compromise.
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: 690a53172a90255b94da5e5d
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:04:22 PM
Last updated: 11/6/2025, 12:55:23 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-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.