← Vulnerability feed

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.

8.1 CVSS 3.1 High CISA KEV since 10 Dec 2021 EPSS 96% · top 0.1%
8.1CVSS 3.1 base score, v2 6.8
96%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
2Affected product versions listed by NVD
17References, 6 tagged exploit
17 Jun 2026Last modified by NVD

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

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

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

LinkTags
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html PatchThird Party Advisory
http://www.securitytracker.com/id/1040702 Broken LinkThird Party AdvisoryVDB Entry
https://github.com/elttam/advisories/tree/master/CVE-2017-17562 Broken LinkThird Party Advisory
https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74 Broken LinkPatchThird Party Advisory
https://github.com/embedthis/goahead/issues/249 Broken LinkIssue TrackingThird Party Advisory
https://www.elttam.com.au/blog/goahead/ Broken LinkExploitPatchThird Party Advisory
https://www.exploit-db.com/exploits/43360/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/43877/ ExploitThird Party AdvisoryVDB Entry
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html PatchThird Party Advisory
http://www.securitytracker.com/id/1040702 Broken LinkThird Party AdvisoryVDB Entry
https://github.com/elttam/advisories/tree/master/CVE-2017-17562 Broken LinkThird Party Advisory
https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74 Broken LinkPatchThird Party Advisory
https://github.com/embedthis/goahead/issues/249 Broken LinkIssue TrackingThird Party Advisory
https://www.elttam.com.au/blog/goahead/ Broken LinkExploitPatchThird Party Advisory
https://www.exploit-db.com/exploits/43360/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/43877/ ExploitThird Party AdvisoryVDB Entry
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-17562 US Government Resource

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-41615Embedthis goahead vulnerabilitywebsda.c in GoAhead WebServer 2.1.8 has insufficient nonce entropy because the nonce calculation relies on the hardcoded onceuponatimeinparadise valu…EPSS 1.4%9.8CVE-2021-43298Embedthis goahead improper restriction of authentication attempts vulnerabilityThe code that performs password matching when using 'Basic' HTTP authentication does not use a constant-time memcmp and has no rate-limiting. This me…EPSS 2.3%9.8CVE-2021-42342GoAhead file upload filter allows environment variable injection into CGI scriptsGoAhead 4.x and 5.x before 5.1.5 fail to prefix user form variables with the CGI prefix in the file upload filter, letting untrusted environment vari…EPSS 59%analysed9.8CVE-2019-5096GoAhead web server use-after-free in multipart/form-data handlingGoAhead versions 5.0.1, 4.1.1 and 3.6.5 contain a use-after-free when processing multipart/form-data requests. A crafted HTTP request corrupts heap s…EPSS 67%analysed9.8CVE-2017-1000471Embedthis goahead null pointer dereference vulnerabilityEmbedThis GoAhead Webserver version 4.0.0 is vulnerable to a NULL pointer dereference in the CGI handler resulting in memory corruption or denial of …EPSS 8.6%9.8CVE-2017-5674Embedthis goahead information exposure vulnerabilityA vulnerability in a custom-built GoAhead web server used on Foscam, Vstarcam, and multiple white-label IP camera models allows an attacker to craft …EPSS 22%8.8CVE-2020-15688Embedthis goahead authentication bypass by capture-replay vulnerabilityThe HTTP Digest Authentication in the GoAhead web server before 5.1.2 does not completely protect against replay attacks. This allows an unauthentica…EPSS 4.0%8.8CVE-2017-5675Embedthis goahead command injection vulnerabilityA command-injection vulnerability exists in a web application on a custom-built GoAhead web server used on Foscam, Vstarcam, and multiple white-label…EPSS 1.7%

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.