CVE-2023-25094: 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 into_class_node function with either the class_name or old_class_name variable.
AI Analysis
Technical Summary
CVE-2023-25094 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 within the into_class_node function, where the class_name or old_class_name variables are copied without proper bounds checking. This flaw allows an attacker with high privileges to craft malicious HTTP requests that overflow the stack buffer, potentially overwriting the return address or other control data. Successful exploitation can lead to arbitrary code execution on the device, compromising its confidentiality, integrity, and availability. The vulnerability requires no user interaction but does require the attacker to have high privileges, likely meaning authenticated access to the device's management interface or network segment. The CVSS v3.1 base score is 7.2, reflecting network attack vector, low attack complexity, high privileges required, and full impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk given the potential for remote code execution. The affected product, Milesight UR32L, is a network device commonly used in industrial and enterprise environments, making this vulnerability particularly relevant for organizations relying on these devices for critical communications or control.
Potential Impact
For European organizations, exploitation of this vulnerability could lead to full compromise of affected Milesight UR32L devices, enabling attackers to execute arbitrary code remotely. This could result in unauthorized data access, disruption of network services, or pivoting to other internal systems. Given the device's role in network infrastructure, successful attacks could impact operational technology environments, critical infrastructure sectors, or enterprise networks. The loss of confidentiality, integrity, and availability could have severe consequences, including data breaches, operational downtime, and potential safety risks in industrial contexts. The requirement for high privileges limits the attack surface but does not eliminate risk, especially if credential management or network segmentation is weak. European organizations in sectors such as manufacturing, energy, transportation, and telecommunications that deploy Milesight UR32L devices are particularly vulnerable. The absence of known exploits in the wild currently provides a window for proactive mitigation before widespread exploitation occurs.
Mitigation Recommendations
1. Immediately verify if your Milesight UR32L devices are running firmware version 32.3.0.5 and prioritize upgrading to a patched version once available from the vendor. 2. Until a patch is released, restrict access to the device management interfaces by implementing strict network segmentation and firewall rules to limit HTTP access only to trusted administrators. 3. Enforce strong authentication mechanisms and rotate credentials regularly to reduce the risk of high-privilege account compromise. 4. Monitor network traffic for unusual HTTP requests targeting the vtysh_ubus interface, especially those containing suspicious payloads that could trigger buffer overflows. 5. Employ intrusion detection or prevention systems with custom signatures to detect attempts to exploit this specific vulnerability. 6. Conduct regular security audits and vulnerability assessments on network devices to identify and remediate similar unsafe coding practices. 7. Educate network and security teams about this vulnerability to ensure rapid response if exploitation attempts are detected. 8. Consider isolating critical devices from general enterprise networks to minimize exposure.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium, Sweden, Finland
CVE-2023-25094: 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 into_class_node function with either the class_name or old_class_name variable.
AI-Powered Analysis
Technical Analysis
CVE-2023-25094 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 within the into_class_node function, where the class_name or old_class_name variables are copied without proper bounds checking. This flaw allows an attacker with high privileges to craft malicious HTTP requests that overflow the stack buffer, potentially overwriting the return address or other control data. Successful exploitation can lead to arbitrary code execution on the device, compromising its confidentiality, integrity, and availability. The vulnerability requires no user interaction but does require the attacker to have high privileges, likely meaning authenticated access to the device's management interface or network segment. The CVSS v3.1 base score is 7.2, reflecting network attack vector, low attack complexity, high privileges required, and full impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk given the potential for remote code execution. The affected product, Milesight UR32L, is a network device commonly used in industrial and enterprise environments, making this vulnerability particularly relevant for organizations relying on these devices for critical communications or control.
Potential Impact
For European organizations, exploitation of this vulnerability could lead to full compromise of affected Milesight UR32L devices, enabling attackers to execute arbitrary code remotely. This could result in unauthorized data access, disruption of network services, or pivoting to other internal systems. Given the device's role in network infrastructure, successful attacks could impact operational technology environments, critical infrastructure sectors, or enterprise networks. The loss of confidentiality, integrity, and availability could have severe consequences, including data breaches, operational downtime, and potential safety risks in industrial contexts. The requirement for high privileges limits the attack surface but does not eliminate risk, especially if credential management or network segmentation is weak. European organizations in sectors such as manufacturing, energy, transportation, and telecommunications that deploy Milesight UR32L devices are particularly vulnerable. The absence of known exploits in the wild currently provides a window for proactive mitigation before widespread exploitation occurs.
Mitigation Recommendations
1. Immediately verify if your Milesight UR32L devices are running firmware version 32.3.0.5 and prioritize upgrading to a patched version once available from the vendor. 2. Until a patch is released, restrict access to the device management interfaces by implementing strict network segmentation and firewall rules to limit HTTP access only to trusted administrators. 3. Enforce strong authentication mechanisms and rotate credentials regularly to reduce the risk of high-privilege account compromise. 4. Monitor network traffic for unusual HTTP requests targeting the vtysh_ubus interface, especially those containing suspicious payloads that could trigger buffer overflows. 5. Employ intrusion detection or prevention systems with custom signatures to detect attempts to exploit this specific vulnerability. 6. Conduct regular security audits and vulnerability assessments on network devices to identify and remediate similar unsafe coding practices. 7. Educate network and security teams about this vulnerability to ensure rapid response if exploitation attempts are detected. 8. Consider isolating critical devices from general enterprise networks to minimize exposure.
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: 690a53172a90255b94da5e45
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:05:47 PM
Last updated: 11/6/2025, 2:11:05 PM
Views: 3
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.