CVE-2024-39227 Command injection in n/a

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary code or perform directory traversal on GL-iNet routers via crafted JSON data in the /cgi-bin/glc endpoint.

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-2024-39227?

CVE-2024-39227 is a critical command injection vulnerability in n/a, published on 6 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

GL-iNet products AR750/AR750S/AR300M/AR300M16/MT300N-V2/B1300/MT1300/SFT1200/X750 v4.3.11, MT3000/MT2500/AXT1800/AX1800/A1300/X300B v4.5.16, XE300 v4.3.16, E750 v4.3.12, AP1300/S1300 v4.3.13, and XE3000/X3000 v4.4 were discovered to contain insecure permissions in the endpoint /cgi-bin/glc. This vulnerability allows unauthenticated attackers to execute arbitrary code or possibly a directory traversal via crafted JSON data.

Weakness: CWE-74, CWE-75

Which versions are affected by CVE-2024-39227?

It affects 28 products.

Products include Gl-Inet A1300 Firmware, Gl-Inet Ap1300 Firmware, Gl-Inet Ar300m16 Firmware, Gl-Inet Ar300m Firmware, Gl-Inet Ar750 Firmware, Gl-Inet Ar750s Firmware and 22 more.

How do I fix CVE-2024-39227?

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

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

Sources

Also known as GHSA-8j3m-968h-m85q.

Is CVE-2024-39227 in your software?

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

Check your SBOMs for free