CVE-2023-31474 Command injection in n/a

High 7.5 Published Updated

Attackers can inject parameters to list files in specific directories via the software installation feature on GL.iNet devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-31474?

CVE-2023-31474 is a high-severity command injection vulnerability in n/a, published on 9 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered on GL.iNet devices before 3.216. Through the software installation feature, it is possible to inject arbitrary parameters in a request to cause opkg to obtain a list of files in a specific directory, by using the regex feature in a package name.

Which versions are affected by CVE-2023-31474?

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-31474?

No fix has been published for CVE-2023-31474 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-31474 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31474 exists.

Sources

Also known as GHSA-xgmf-7522-grcf.

Is CVE-2023-31474 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free