CVE-2023-31473 Command injection in n/a
Attackers can inject commands via software installation to create arbitrary files as root, enabling code execution and privilege escalation on GL.iNet devices.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-31473?
CVE-2023-31473 is a medium-severity command injection vulnerability in n/a, published on 11 May 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-77
Which versions are affected by CVE-2023-31473?
It affects 32 products.
Products include Gl-Inet Gl-A1300 Firmware, Gl-Inet Gl-Ap1300 Firmware, Gl-Inet Gl-Ap1300lte Firmware, Gl-Inet Gl-Ar300m Firmware, Gl-Inet Gl-Ar750 Firmware, Gl-Inet Gl-Ar750s Firmware and 26 more.
How do I fix CVE-2023-31473?
No fix has been published for CVE-2023-31473 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-31473 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31473 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-52cq-m3mg-849p.