CVE-2023-25099: 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 dest variable.
AI Analysis
Technical Summary
CVE-2023-25099 is a stack-based buffer overflow vulnerability identified in the Milesight UR32L device firmware version v32.3.0.5. The flaw exists in the vtysh_ubus binary, specifically within the set_qos function, due to unsafe use of the sprintf function to handle the dest variable. This unsafe pattern allows an attacker with high privileges to craft malicious HTTP requests that overflow the buffer, leading to arbitrary code execution on the device. The vulnerability is classified under CWE-121, indicating a classic stack-based buffer overflow. The attack vector is network-based (AV:N), requiring low attack complexity (AC:L), but does require the attacker to have high privileges (PR:H) on the device, though no user interaction is needed (UI:N). The scope remains unchanged (S:U), but the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H), as the attacker can execute arbitrary code remotely. Although no public exploits have been reported, the vulnerability poses a significant risk to the security posture of affected devices. The lack of available patches at the time of reporting increases the urgency for mitigation. The vulnerability affects a specific firmware version, so organizations using this version are directly impacted. The device is typically used in network infrastructure roles, making exploitation potentially impactful on network operations and data security.
Potential Impact
For European organizations, exploitation of CVE-2023-25099 could lead to complete compromise of affected Milesight UR32L devices, which are often deployed in network infrastructure, industrial control systems, or telecommunications environments. Successful exploitation allows attackers to execute arbitrary code remotely, potentially leading to unauthorized access, data exfiltration, disruption of network services, or pivoting to other internal systems. This could impact confidentiality by exposing sensitive data, integrity by allowing unauthorized configuration changes, and availability by causing device crashes or denial of service. Given the critical role these devices may play in operational technology (OT) or critical infrastructure sectors, the impact could extend to service outages or safety risks. The requirement for high privileges limits the attack surface somewhat, but insider threats or compromised credentials could enable exploitation. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate it, especially as threat actors may develop exploits over time. European organizations should consider the potential for targeted attacks against critical infrastructure or industrial environments where these devices are deployed.
Mitigation Recommendations
1. Immediately restrict HTTP access to the management interface of Milesight UR32L devices to trusted administrators only, preferably via network segmentation and firewall rules. 2. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service or the set_qos function patterns. 3. Enforce strong authentication and credential management to reduce the risk of privilege escalation or unauthorized access, as the vulnerability requires high privileges. 4. Engage with the vendor (Milesight) for firmware updates or patches addressing this vulnerability and plan prompt deployment once available. 5. If patching is not immediately possible, consider disabling or limiting the vulnerable service or interface where feasible. 6. Conduct regular security audits and vulnerability scans on network devices to detect outdated firmware versions. 7. Implement intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics capable of detecting exploitation attempts targeting this vulnerability. 8. Educate network administrators about the risks and signs of exploitation related to this vulnerability to enhance incident response readiness.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium, Sweden, Finland
CVE-2023-25099: 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 dest variable.
AI-Powered Analysis
Technical Analysis
CVE-2023-25099 is a stack-based buffer overflow vulnerability identified in the Milesight UR32L device firmware version v32.3.0.5. The flaw exists in the vtysh_ubus binary, specifically within the set_qos function, due to unsafe use of the sprintf function to handle the dest variable. This unsafe pattern allows an attacker with high privileges to craft malicious HTTP requests that overflow the buffer, leading to arbitrary code execution on the device. The vulnerability is classified under CWE-121, indicating a classic stack-based buffer overflow. The attack vector is network-based (AV:N), requiring low attack complexity (AC:L), but does require the attacker to have high privileges (PR:H) on the device, though no user interaction is needed (UI:N). The scope remains unchanged (S:U), but the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H), as the attacker can execute arbitrary code remotely. Although no public exploits have been reported, the vulnerability poses a significant risk to the security posture of affected devices. The lack of available patches at the time of reporting increases the urgency for mitigation. The vulnerability affects a specific firmware version, so organizations using this version are directly impacted. The device is typically used in network infrastructure roles, making exploitation potentially impactful on network operations and data security.
Potential Impact
For European organizations, exploitation of CVE-2023-25099 could lead to complete compromise of affected Milesight UR32L devices, which are often deployed in network infrastructure, industrial control systems, or telecommunications environments. Successful exploitation allows attackers to execute arbitrary code remotely, potentially leading to unauthorized access, data exfiltration, disruption of network services, or pivoting to other internal systems. This could impact confidentiality by exposing sensitive data, integrity by allowing unauthorized configuration changes, and availability by causing device crashes or denial of service. Given the critical role these devices may play in operational technology (OT) or critical infrastructure sectors, the impact could extend to service outages or safety risks. The requirement for high privileges limits the attack surface somewhat, but insider threats or compromised credentials could enable exploitation. The absence of known exploits in the wild currently reduces immediate risk but does not eliminate it, especially as threat actors may develop exploits over time. European organizations should consider the potential for targeted attacks against critical infrastructure or industrial environments where these devices are deployed.
Mitigation Recommendations
1. Immediately restrict HTTP access to the management interface of Milesight UR32L devices to trusted administrators only, preferably via network segmentation and firewall rules. 2. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service or the set_qos function patterns. 3. Enforce strong authentication and credential management to reduce the risk of privilege escalation or unauthorized access, as the vulnerability requires high privileges. 4. Engage with the vendor (Milesight) for firmware updates or patches addressing this vulnerability and plan prompt deployment once available. 5. If patching is not immediately possible, consider disabling or limiting the vulnerable service or interface where feasible. 6. Conduct regular security audits and vulnerability scans on network devices to detect outdated firmware versions. 7. Implement intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics capable of detecting exploitation attempts targeting this vulnerability. 8. Educate network administrators about the risks and signs of exploitation related to this vulnerability to enhance incident response readiness.
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: 690a53172a90255b94da5e59
Added to database: 11/4/2025, 7:25:11 PM
Last enriched: 11/4/2025, 9:04:38 PM
Last updated: 11/6/2025, 1:42:05 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.