Embedthis GoAhead
Embedthis GoAhead Remote Code Execution Vulnerability
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.
Timeline
Days relative to CVE publicationFirst public PoC 5.2 days after publication; added to CISA KEV 4.0 years after publication. First PoC: GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Remote Code Execution (Exploit-DB, 18 Dec 2017).
PoC repositories
Found on GitHub.8 PoCs
PoCs 8
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 1337g/CVE-2017-17562 | 27 Dec 2017 +14 d | 1 | PoC via PoC Index |
| ivanitlearning/CVE-2017-17562 | 16 Oct 2019 +1.8 y | 10 | PoC |
| crispy-peppers/Goahead-CVE-2017-17562 | 23 Nov 2019 +1.9 y | 0 | PoC |
| cyberharsh/GoAhead-cve---2017--17562 | 24 Jun 2020 +2.5 y | 0 | PoC via PoC Index |
| fssecur3/goahead-rce-exploit | 14 Nov 2021 +3.9 y | 8 | PoC |
| nu11pointer/goahead-rce-exploit | 14 Nov 2021 +3.9 y | 8 | PoC |
| freitzzz/bash-CVE-2017-17562 | 17 Nov 2021 +3.9 y | 1 | PoC |
| joaomagfreitas/bash-CVE-2017-17562 | 17 Nov 2021 +3.9 y | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 43360 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 43877 | unknown | 14 Nov 2026 |
| Exploit-DB | GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Remote Code Execution | 18 Dec 2017 | 14 Nov 2026 |
| Exploit-DB | GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Arbitrary Module Load (Metasploit) | 24 Jan 2018 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: GoAhead Web Server LD_PRELOAD Arbitrary Module Load (exploit/linux/http/goahead_ldpreload) | 18 Dec 2017 | 14 Nov 2026 |
| nuclei template | nuclei template: Embedthis GoAhead <3.6.5 - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 8 PoC reposPOST /cgi-bin/index
- Query
LD_PRELOAD=/proc/self/fd/0- Body markers
@payload.so=inapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: cyberharsh/GoAhead-cve---2017--17562
- Evidence
- cyberharsh/GoAhead-cve---2017--17562/README.md:47
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/index\?(?:.*&)?LD_PRELOAD=/proc/self/fd/0
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2017-17562 Embedthis GoAhead exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cgi-bin/index"; http.uri; content:"LD_PRELOAD=/proc/self/fd/0"; http.request_body; content:"@payload.so="; reference:url,poc.griffinguard.io/cve/CVE-2017-17562; classtype:web-application-attack; sid:9868233; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Embedthis GoAhead exploit attempt (CVE-2017-17562)
id: gg-pocmon-cve-2017-17562-9868233
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-17562. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-17562
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/cgi-bin/index'
cs-uri-query|contains|all:
- 'LD_PRELOAD=/proc/self/fd/0'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2017.17562