CVE-2010-5330
Published: 11 June 2019
Summary
CVE-2010-5330 is a critical-severity Command Injection (CWE-77) vulnerability in Ui Airos. Its CVSS base score is 9.8 (Critical).
Operationally, ranked in the top 2.4% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Deeper analysis
CVE-2010-5330 is a command injection vulnerability affecting certain Ubiquiti devices running Air OS, including the Nanostation5. The flaw resides in stainfo.cgi (Show AP info), where the ifname variable is not sanitized before being passed to a system command, allowing shell metacharacters in an unauthenticated GET request.
An attacker with network access can send a crafted HTTP GET request to the affected endpoint and execute arbitrary commands on the device. Successful exploitation grants full control over the device, enabling actions such as configuration changes, data exfiltration, or use of the device as a pivot point, consistent with the CVSS 9.8 rating and CWE-77 classification.
Ubiquiti community advisories and firmware release notes direct users to apply the fixed versions v4.0.1 for 802.11 ISP products, v5.3.5 for AirMax ISP products, or v5.4.5 for AirSync firmware to eliminate the injection vector.
The vulnerability appears in the CISA Known Exploited Vulnerabilities catalog and has publicly available exploit code on Exploit-DB, indicating confirmed real-world exploitation.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2010-5287
Vulnerability details
On certain Ubiquiti devices, Command Injection exists via a GET request to stainfo.cgi (aka Show AP info) because the ifname variable is not sanitized, as demonstrated by shell metacharacters. The fixed version is v4.0.1 for 802.11 ISP products, v5.3.5 for…
more
AirMax ISP products, and v5.4.5 for AirSync firmware. For example, Nanostation5 (Air OS) is affected.
- CWE(s)
- KEV Date Added
- 15 April 2022
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Requires validation and sanitization of all input parameters (e.g., ifname in stainfo.cgi) before they are used in system commands, directly blocking the unsanitized shell metacharacters that enable the injection.
Mandates timely application of firmware patches (v4.0.1 / v5.3.5 / v5.4.5) that eliminate the command-injection flaw in stainfo.cgi.
Enforces disabling or restricting unnecessary device functions and web endpoints (e.g., the unauthenticated stainfo.cgi handler) so the vulnerable code path is never exposed.