Vulnerability record · CVE-2023-31473 · published 11 May 2023
CVE-2023-31473: Gl-inet gl-s20 firmware command injection vulnerability
Gl Inet · Gl S20 Firmware
An issue was discovered on GL.iNet devices before 3.216. There is an arbitrary file write in which an empty file can be created anywhere on the filesystem. This is caused by a command injection vulnerability with a filter applied. Through the software installation feature, it is possible to inject arbitrary parameters in a request to cause opkg to read an arbitrary file name while using root privileges. The -f option can be used with a configuration file.
Description
An issue was discovered on GL.iNet devices before 3.216. There is an arbitrary file write in which an empty file can be created anywhere on the filesystem. This is caused by a command injection vulnerability with a filter applied. Through the software installation feature, it is possible to inject arbitrary parameters in a request to cause opkg to read an arbitrary file name while using root privileges. The -f option can be used with a configuration file.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Affected products
32 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/gl-inet/CVE-issues/blob/main/3.215/Arbitrary_File_Read.md | ExploitThird Party Advisory |
| https://www.gl-inet.com | Vendor Advisory |
| https://github.com/gl-inet/CVE-issues/blob/main/3.215/Arbitrary_File_Read.md | ExploitThird Party Advisory |
| https://www.gl-inet.com | Vendor Advisory |
Track CVE-2023-31473 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-31473), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.