PoC Monitor
← All CVEs
CVE-2017-17562published 12 Dec 2017 19:00 UTCData: JSON · API

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.

First public PoC 5.2 daysafter publication · 18 Dec 2017 · Exploit-DB
Public PoCs128 on GitHub · 4 Exploit-DB, Metasploit or nuclei
CVSS8.1high · scored by CISA ADP · CWE-noinfo
CISA KEV 10 Dec 20214.0 years after publication

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900+1080+1260+1440CVE published12 Dec 2017 · t = 0First public PoC18 Dec 2017 · t+5.2dAdded to CISA KEV10 Dec 2021 · t+4.0y

First 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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
CVE record (tagged exploit)43360unknown14 Nov 2026
CVE record (tagged exploit)43877unknown14 Nov 2026
Exploit-DBGoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Remote Code Execution18 Dec 201714 Nov 2026
Exploit-DBGoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Arbitrary Module Load (Metasploit)24 Jan 201814 Nov 2026
MetasploitMetasploit exploit: GoAhead Web Server LD_PRELOAD Arbitrary Module Load (exploit/linux/http/goahead_ldpreload)18 Dec 201714 Nov 2026
nuclei templatenuclei template: Embedthis GoAhead <3.6.5 - Remote Code Execution27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 8 PoC repos

POST /cgi-bin/index

Query
LD_PRELOAD=/proc/self/fd/0
Body markers
@payload.so= in application/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.

POST /cgi-bin/index
(?i)^/cgi-bin/index\?(?:.*&)?LD_PRELOAD=/proc/self/fd/0

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /cgi-bin/index
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.

POST /cgi-bin/index
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