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-25122: CWE-121: Stack-based Buffer Overflow in Milesight UR32L

0
High
VulnerabilityCVE-2023-25122cvecve-2023-25122cwe-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 old_remote_subnet and the old_remote_mask variables.

AI-Powered Analysis

AILast updated: 11/04/2025, 20:49:22 UTC

Technical Analysis

CVE-2023-25122 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_openvpn_client function, where unsafe usage of the sprintf function leads to buffer overflow conditions involving the old_remote_subnet and old_remote_mask variables. This vulnerability is classified under CWE-121, indicating a classic stack-based buffer overflow. An attacker with high privileges on the device can exploit this by sending specially crafted HTTP requests to the device's management interface, which does not require user interaction but does require prior authentication or elevated privileges. Successful exploitation can result in arbitrary code execution, allowing the attacker to compromise the device's confidentiality, integrity, and availability. The CVSS v3.1 score is 7.2 (high), reflecting network attack vector, low attack complexity, required privileges, and full impact on confidentiality, integrity, and availability. Although no known exploits are reported in the wild, the vulnerability poses a significant risk to organizations relying on these devices for network connectivity or VPN services. The lack of available patches at the time of reporting necessitates immediate mitigation steps to reduce exposure.

Potential Impact

For European organizations, the impact of this vulnerability can be severe, especially for those using Milesight UR32L devices in critical infrastructure, industrial control systems, or enterprise VPN deployments. Exploitation could allow attackers to execute arbitrary code remotely, leading to device takeover, network infiltration, data exfiltration, or disruption of network services. This compromises the confidentiality of sensitive communications, the integrity of network configurations, and the availability of VPN connectivity. Given the device's role in secure communications, successful exploitation could facilitate lateral movement within corporate networks or critical infrastructure environments. The requirement for high privileges limits the attack surface but does not eliminate risk, as insider threats or compromised credentials could be leveraged. The absence of known exploits currently provides a window for proactive defense, but the high severity score underscores the urgency for mitigation.

Mitigation Recommendations

1. Immediately restrict access to the management HTTP interface of Milesight UR32L devices to trusted networks and administrators only, using network segmentation and firewall rules. 2. Enforce strong authentication mechanisms and monitor for unusual login attempts or HTTP request patterns indicative of exploitation attempts. 3. Disable or limit OpenVPN client configuration changes via HTTP if not required operationally. 4. Implement strict input validation and filtering at network ingress points to detect and block malformed HTTP requests targeting the vulnerable functions. 5. Regularly audit device firmware versions and configurations to identify vulnerable devices. 6. Coordinate with Milesight for firmware updates or patches addressing this vulnerability and plan prompt deployment once available. 7. Employ intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics to detect exploitation attempts targeting this vulnerability. 8. Maintain comprehensive logging and alerting on device management activities to enable rapid incident response.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

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

Threat ID: 690a531d2a90255b94da5f1e

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

Last enriched: 11/4/2025, 8:49:22 PM

Last updated: 2/7/2026, 3:07:15 PM

Views: 14

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 more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats