Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2023-25118: CWE-121: Stack-based Buffer Overflow in Milesight UR32L

0
High
VulnerabilityCVE-2023-25118cvecve-2023-25118cwe-121
Published: Thu Jul 06 2023 (07/06/2023, 14:53:26 UTC)
Source: CVE Database V5
Vendor/Project: Milesight
Product: 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_openvpn_client function with the username and the password variables.

AI-Powered Analysis

AILast updated: 11/04/2025, 20:50:17 UTC

Technical Analysis

CVE-2023-25118 is a stack-based buffer overflow vulnerability classified under CWE-121, found in the vtysh_ubus binary of Milesight UR32L firmware version v32.3.0.5. The root cause is the unsafe use of the sprintf function within the set_openvpn_client function, which processes username and password parameters from HTTP requests. Because sprintf does not perform bounds checking, specially crafted inputs can overflow the buffer on the stack, corrupting adjacent memory. This corruption can lead to arbitrary code execution, allowing an attacker to execute malicious code with the privileges of the vulnerable process. Exploitation requires the attacker to have high privileges to send HTTP requests to the device, but no user interaction is needed. The vulnerability impacts confidentiality, integrity, and availability, as arbitrary code execution could lead to data theft, device manipulation, or denial of service. Although no public exploits are currently known, the vulnerability's CVSS score of 7.2 (high) reflects its seriousness. The affected product, Milesight UR32L, is a network device often used in industrial and enterprise environments, making this vulnerability a significant risk vector if left unmitigated. The lack of an official patch at the time of reporting necessitates immediate mitigation steps to reduce exposure.

Potential Impact

For European organizations, the impact of CVE-2023-25118 can be substantial. The vulnerability allows attackers with elevated privileges to execute arbitrary code on Milesight UR32L devices, potentially compromising network infrastructure. This can lead to unauthorized access to sensitive data, disruption of network services, and pivoting to other internal systems. Given that Milesight UR32L devices are used in industrial control systems, enterprise networks, and critical infrastructure, exploitation could affect operational continuity and data confidentiality. The high severity and ease of exploitation (no user interaction needed) increase the risk of targeted attacks, especially in sectors such as manufacturing, energy, and telecommunications. Organizations relying on these devices must consider the threat of espionage, sabotage, or ransomware attacks facilitated by this vulnerability. The absence of known exploits currently provides a window for proactive defense, but the risk remains high due to the potential impact and the device's role in network operations.

Mitigation Recommendations

1. Immediately restrict administrative HTTP access to the Milesight UR32L devices to trusted networks and IP addresses, ideally via VPN or secure management channels. 2. Implement strict access controls and multi-factor authentication for users with high privileges to reduce the risk of credential compromise. 3. Monitor network traffic for anomalous HTTP requests targeting the vtysh_ubus interface, focusing on unusual payload sizes or patterns in username and password fields. 4. Disable or limit the use of OpenVPN client configuration via HTTP if not required, reducing the attack surface. 5. Regularly audit device configurations and logs for signs of exploitation attempts or suspicious activity. 6. Engage with the vendor for firmware updates or patches addressing this vulnerability and plan for timely deployment once available. 7. Consider network segmentation to isolate vulnerable devices from critical systems to limit lateral movement in case of compromise. 8. Employ intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics capable of detecting buffer overflow attempts on these devices.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
talos
Date Reserved
2023-02-02T20:42:36.076Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 690a531b2a90255b94da5ebf

Added to database: 11/4/2025, 7:25:15 PM

Last enriched: 11/4/2025, 8:50:17 PM

Last updated: 11/6/2025, 1:59:50 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats