CVE-2023-25085: 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 firewall_handler_set function with the index and to_dst variables.
AI Analysis
Technical Summary
CVE-2023-25085 is a stack-based buffer overflow vulnerability classified under CWE-121, found in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The vulnerability stems from the unsafe use of the sprintf function in the firewall_handler_set function, where the index and to_dst variables are improperly handled, leading to buffer overflow conditions. This flaw can be exploited by an attacker with high privileges who can send specially crafted HTTP requests to the device. Successful exploitation allows arbitrary code execution on the device, compromising its confidentiality, integrity, and availability. The vulnerability does not require user interaction but does require the attacker to have elevated privileges, limiting the attack surface to authenticated or otherwise privileged users. The CVSS v3.1 base score is 7.2, reflecting high severity with network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to organizations relying on these devices for network management and firewall functions. The lack of available patches at the time of publication necessitates immediate mitigation efforts to reduce exposure.
Potential Impact
For European organizations, exploitation of CVE-2023-25085 could lead to full compromise of affected Milesight UR32L devices, which are often used in network infrastructure and firewall management. This could result in unauthorized access, data exfiltration, disruption of network services, and potential lateral movement within corporate networks. Critical sectors such as telecommunications, energy, manufacturing, and government agencies that deploy these devices could face operational disruptions and data breaches. The high severity and network accessibility of the vulnerability increase the risk of targeted attacks, especially in environments where privileged access controls are weak or where devices are exposed to less trusted networks. The impact extends to regulatory compliance risks under GDPR if personal data confidentiality is compromised. Additionally, the integrity of firewall rules and network segmentation could be undermined, facilitating further attacks.
Mitigation Recommendations
European organizations should immediately audit their network to identify any Milesight UR32L devices running vulnerable firmware version 32.3.0.5. Until a vendor patch is available, restrict HTTP access to these devices strictly to trusted administrative networks using network segmentation and firewall rules. Implement strong authentication and limit the number of users with high privileges capable of sending HTTP requests to the device. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service. Employ intrusion detection/prevention systems (IDS/IPS) with signatures tuned to detect exploitation attempts. Regularly check for firmware updates from Milesight and apply patches promptly once released. Consider deploying compensating controls such as network access control (NAC) to prevent unauthorized devices from communicating with UR32L devices. Conduct security awareness training for administrators managing these devices to recognize and respond to suspicious activity.
Affected Countries
Germany, France, United Kingdom, Italy, Spain, Netherlands, Poland, Belgium, Sweden, Finland
CVE-2023-25085: 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 firewall_handler_set function with the index and to_dst variables.
AI-Powered Analysis
Technical Analysis
CVE-2023-25085 is a stack-based buffer overflow vulnerability classified under CWE-121, found in the vtysh_ubus binary of the Milesight UR32L device firmware version 32.3.0.5. The vulnerability stems from the unsafe use of the sprintf function in the firewall_handler_set function, where the index and to_dst variables are improperly handled, leading to buffer overflow conditions. This flaw can be exploited by an attacker with high privileges who can send specially crafted HTTP requests to the device. Successful exploitation allows arbitrary code execution on the device, compromising its confidentiality, integrity, and availability. The vulnerability does not require user interaction but does require the attacker to have elevated privileges, limiting the attack surface to authenticated or otherwise privileged users. The CVSS v3.1 base score is 7.2, reflecting high severity with network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability. No public exploits have been reported yet, but the vulnerability poses a significant risk to organizations relying on these devices for network management and firewall functions. The lack of available patches at the time of publication necessitates immediate mitigation efforts to reduce exposure.
Potential Impact
For European organizations, exploitation of CVE-2023-25085 could lead to full compromise of affected Milesight UR32L devices, which are often used in network infrastructure and firewall management. This could result in unauthorized access, data exfiltration, disruption of network services, and potential lateral movement within corporate networks. Critical sectors such as telecommunications, energy, manufacturing, and government agencies that deploy these devices could face operational disruptions and data breaches. The high severity and network accessibility of the vulnerability increase the risk of targeted attacks, especially in environments where privileged access controls are weak or where devices are exposed to less trusted networks. The impact extends to regulatory compliance risks under GDPR if personal data confidentiality is compromised. Additionally, the integrity of firewall rules and network segmentation could be undermined, facilitating further attacks.
Mitigation Recommendations
European organizations should immediately audit their network to identify any Milesight UR32L devices running vulnerable firmware version 32.3.0.5. Until a vendor patch is available, restrict HTTP access to these devices strictly to trusted administrative networks using network segmentation and firewall rules. Implement strong authentication and limit the number of users with high privileges capable of sending HTTP requests to the device. Monitor network traffic for unusual or malformed HTTP requests targeting the vtysh_ubus service. Employ intrusion detection/prevention systems (IDS/IPS) with signatures tuned to detect exploitation attempts. Regularly check for firmware updates from Milesight and apply patches promptly once released. Consider deploying compensating controls such as network access control (NAC) to prevent unauthorized devices from communicating with UR32L devices. Conduct security awareness training for administrators managing these devices to recognize and respond to suspicious activity.
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.069Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690a53152a90255b94da57a3
Added to database: 11/4/2025, 7:25:09 PM
Last enriched: 11/4/2025, 9:16:01 PM
Last updated: 11/6/2025, 1:14:50 PM
Views: 2
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-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
MediumCVE-2025-12471: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nerdpressteam Hubbub Lite – Fast, free social sharing and follow buttons
MediumCVE-2025-9338: CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer in ASUS Armoury Crate
HighActions
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.