Vulnerability record · CVE-2017-17562 · published 12 December 2017
CVE-2017-17562: Embedthis GoAhead CGI environment variable injection enables remote code execution
Embedthis · Goahead
Embedthis GoAhead before 3.6.5 initializes the environment of forked CGI scripts using untrusted HTTP request parameters in cgiHandler in cgi.c. When CGI is enabled and the CGI program is dynamically linked, an attacker can inject special parameter names such as LD_PRELOAD to influence the glibc dynamic linker. This allows remote code execution on the affected server.
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityThe vulnerability is listed in CISA KEV as known exploited, has a very high EPSS score, and allows unauthenticated remote code execution.
What it is
Embedthis GoAhead before 3.6.5 initializes the environment of forked CGI scripts using untrusted HTTP request parameters in cgiHandler in cgi.c. When CGI is enabled and the CGI program is dynamically linked, an attacker can inject special parameter names such as LD_PRELOAD to influence the glibc dynamic linker. This allows remote code execution on the affected server.
Impact
An attacker can execute arbitrary code with the privileges of the GoAhead web server process. This can lead to full compromise of the host, data theft, or use as a pivot point.
Attack surface
The flaw is reachable over the network via HTTP requests to a GoAhead server that has CGI enabled and a dynamically linked CGI program. No authentication or user interaction is required per the CVSS vector (PR:N/UI:N).
Exploitation
CISA KEV lists this as known exploited with a due date of 2022-06-10, and EPSS shows a 30-day probability of 0.96327 (99.878th percentile). Multiple public exploit references exist, including Exploit-DB entries 43360 and 43877.
What to do
- Apply the vendor patch by upgrading Embedthis GoAhead to version 3.6.5 or later.
- Apply Oracle CPU April 2018 updates for affected Oracle Integrated Lights Out Manager (ILOM) products.
- Disable CGI functionality if it is not required for the deployment.
- Avoid dynamically linked CGI programs where possible, or restrict the environment passed to CGI processes.
- Monitor for and block HTTP requests containing suspicious parameter names such as LD_PRELOAD or LD_LIBRARY_PATH.
Detection
- Inspect HTTP request logs for parameter names matching LD_PRELOAD, LD_LIBRARY_PATH, or other dynamic linker environment variables.
- Monitor for POST requests that reference /proc/self/fd/0 in parameters or bodies.
- Detect unexpected child processes spawned by the GoAhead web server, especially those loading shared objects from unusual paths.
- Use file integrity monitoring on CGI binaries and shared libraries to detect tampering or unexpected loading.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2017-17562 to the Known Exploited Vulnerabilities catalog on 10 December 2021 as "Embedthis GoAhead Remote Code Execution Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 10 June 2022.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2017-17562 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2017-17562), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.