CVE-2017-17562 Embedthis GoAhead Remote Code Execution

Exploited in the wild High 8.1 Published Updated

Remote attackers can execute arbitrary code on GoAhead web servers by exploiting environment variable injection in CGI handlers when CGI is enabled.

Exploited in the wild
Since 10 Dec 2021
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2017-17562?

CVE-2017-17562 is a high-severity code injection vulnerability in n/a, published on 12 Dec 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Embedthis GoAhead before 3.6.5 allows remote code execution if CGI is enabled and a CGI program is dynamically linked. This is a result of initializing the environment of forked CGI scripts using untrusted HTTP request parameters in the cgiHandler function in cgi.c. When combined with the glibc dynamic linker, this behaviour can be abused for remote code execution using special parameter names such as LD_PRELOAD. An attacker can POST their shared object payload in the body of the request, and reference it using /proc/self/fd/0.

Which versions are affected by CVE-2017-17562?

It affects 2 products.

Products include Embedthis Goahead, Oracle Integrated Lights Out Manager.

How do I fix CVE-2017-17562?

No fix has been published for CVE-2017-17562 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 10 Jun 2022.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2017-17562 being exploited?

Yes. Attackers have exploited CVE-2017-17562 in the wild since at least 10 Dec 2021.

Public exploit code: 1 Metasploit module, 2 Exploit-DB entries, 1 Nuclei template and 5 proofs of concept on GitHub.

Sources

Also known as GHSA-q5wm-274q-f3v6.

Is CVE-2017-17562 in your software?

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

Check your SBOMs for free