CVE-2023-25102: 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_dmvpn function with the hub_ip and the hub_gre_ip variables.
AI Analysis
Technical Summary
CVE-2023-25102 is a stack-based buffer overflow vulnerability categorized under CWE-121, affecting the Milesight UR32L device firmware version 32.3.0.5. The vulnerability resides in the vtysh_ubus binary, specifically within the set_dmvpn function, which processes the hub_ip and hub_gre_ip variables. Due to unsafe usage of the sprintf function, a specially crafted HTTP request can overflow the stack buffer, allowing an attacker with high privileges to execute arbitrary code remotely. The attack vector requires network access to the device's HTTP interface and elevated privileges, but no user interaction is needed. The vulnerability impacts confidentiality, integrity, and availability, as arbitrary code execution could lead to full device compromise, data leakage, or denial of service. Although no public exploits are currently known, the CVSS v3.1 base score of 7.2 reflects the high severity and potential impact. The flaw underscores the risks of unsafe string handling in network device firmware and the importance of secure coding practices. Organizations deploying Milesight UR32L devices in their network infrastructure should be aware of this vulnerability and prepare to apply patches or mitigations promptly.
Potential Impact
For European organizations, exploitation of CVE-2023-25102 could lead to severe consequences including unauthorized control over network devices, disruption of network services, and potential data breaches. Since Milesight UR32L devices are used in network routing and VPN scenarios, compromise could allow attackers to intercept, manipulate, or disrupt sensitive communications. This is particularly critical for sectors relying on secure and reliable network infrastructure such as telecommunications, government, finance, and critical infrastructure operators. The ability to execute arbitrary code remotely could also enable lateral movement within networks, increasing the risk of broader compromise. The high privileges required to exploit the vulnerability somewhat limit the attack surface but do not eliminate risk, especially in environments where administrative access is exposed or poorly segmented. The absence of known exploits in the wild provides a window for proactive defense, but organizations should not delay mitigation efforts.
Mitigation Recommendations
1. Immediately restrict HTTP management interface access to trusted administrative networks using firewall rules or network segmentation to reduce exposure. 2. Implement strict access controls and multi-factor authentication for administrative accounts to prevent unauthorized privilege escalation. 3. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service, especially those attempting to exploit the set_dmvpn function. 4. Engage with Milesight support or official channels to obtain firmware updates or patches addressing this vulnerability; apply them as soon as they become available. 5. Conduct regular security audits and vulnerability assessments on network devices to identify and remediate similar unsafe coding practices. 6. Consider deploying intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics capable of detecting exploitation attempts targeting this vulnerability. 7. Maintain an incident response plan tailored to network device compromise scenarios to enable rapid containment and recovery if exploitation occurs.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland
CVE-2023-25102: 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_dmvpn function with the hub_ip and the hub_gre_ip variables.
AI-Powered Analysis
Technical Analysis
CVE-2023-25102 is a stack-based buffer overflow vulnerability categorized under CWE-121, affecting the Milesight UR32L device firmware version 32.3.0.5. The vulnerability resides in the vtysh_ubus binary, specifically within the set_dmvpn function, which processes the hub_ip and hub_gre_ip variables. Due to unsafe usage of the sprintf function, a specially crafted HTTP request can overflow the stack buffer, allowing an attacker with high privileges to execute arbitrary code remotely. The attack vector requires network access to the device's HTTP interface and elevated privileges, but no user interaction is needed. The vulnerability impacts confidentiality, integrity, and availability, as arbitrary code execution could lead to full device compromise, data leakage, or denial of service. Although no public exploits are currently known, the CVSS v3.1 base score of 7.2 reflects the high severity and potential impact. The flaw underscores the risks of unsafe string handling in network device firmware and the importance of secure coding practices. Organizations deploying Milesight UR32L devices in their network infrastructure should be aware of this vulnerability and prepare to apply patches or mitigations promptly.
Potential Impact
For European organizations, exploitation of CVE-2023-25102 could lead to severe consequences including unauthorized control over network devices, disruption of network services, and potential data breaches. Since Milesight UR32L devices are used in network routing and VPN scenarios, compromise could allow attackers to intercept, manipulate, or disrupt sensitive communications. This is particularly critical for sectors relying on secure and reliable network infrastructure such as telecommunications, government, finance, and critical infrastructure operators. The ability to execute arbitrary code remotely could also enable lateral movement within networks, increasing the risk of broader compromise. The high privileges required to exploit the vulnerability somewhat limit the attack surface but do not eliminate risk, especially in environments where administrative access is exposed or poorly segmented. The absence of known exploits in the wild provides a window for proactive defense, but organizations should not delay mitigation efforts.
Mitigation Recommendations
1. Immediately restrict HTTP management interface access to trusted administrative networks using firewall rules or network segmentation to reduce exposure. 2. Implement strict access controls and multi-factor authentication for administrative accounts to prevent unauthorized privilege escalation. 3. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service, especially those attempting to exploit the set_dmvpn function. 4. Engage with Milesight support or official channels to obtain firmware updates or patches addressing this vulnerability; apply them as soon as they become available. 5. Conduct regular security audits and vulnerability assessments on network devices to identify and remediate similar unsafe coding practices. 6. Consider deploying intrusion detection/prevention systems (IDS/IPS) with signatures or heuristics capable of detecting exploitation attempts targeting this vulnerability. 7. Maintain an incident response plan tailored to network device compromise scenarios to enable rapid containment and recovery if exploitation occurs.
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: 690a53192a90255b94da5e74
Added to database: 11/4/2025, 7:25:13 PM
Last enriched: 11/4/2025, 9:03:49 PM
Last updated: 11/6/2025, 2:04:31 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.