CVE-2023-31477 Path traversal in n/a

High 7.5 Published Updated

Attackers can read arbitrary files from the router's filesystem via the file sharing feature due to missing server-side path restrictions.

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

CVE-2023-31477 is a high-severity path traversal vulnerability in n/a, published on 11 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A path traversal issue was discovered on GL.iNet devices before 3.216. Through the file sharing feature, it is possible to share an arbitrary directory, such as /tmp or /etc, because there is no server-side restriction to limit sharing to the USB path.

Weakness: CWE-22

Which versions are affected by CVE-2023-31477?

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

No fix has been published for CVE-2023-31477 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-31477 being exploited?

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

Sources

Also known as GHSA-xcr9-xmx6-j7fh.

Is CVE-2023-31477 in your software?

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

Check your SBOMs for free