8.1high

CVE-2017-17562KEVin critical feed3 exploitsNuclei template

Embedthis GoAhead before 3.6.5 allows remote code execution if CGI is enabled and a CGI program is dynamically linked.

Published 8 y ago · modified 4 mo ago · JSON

CVSS
8.1
v3.1 · CNA
CISA KEV
Yes
added 2021-12-10
EPSS
97.1%
percentile 100%
Public exploits
3
Metasploit · Exploit-DB · Nuclei check

Summary

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.

Known exploited (CISA KEV)

Added
4 y ago
Due date
2022-06-10 (4 y ago)
Ransomware use
Unknown
Required action
Apply updates per vendor instructions.
Vendor / product
Embedthis / GoAhead
CISA name
Embedthis GoAhead Remote Code Execution Vulnerability

CISA SSVC assessment

Exploitation
Active — exploited in the wild
Automatable
no
Technical impact
total
Assessed
21 mo ago

Exploit prediction (EPSS)

97.13% probability of exploitation in the next 30 days, higher than 100% of all scored CVEs.

Exploits and detections

  • Nuclei template Embedthis GoAhead <3.6.5 - Remote Code Execution · nuclei detection template
  • Metasploit exploit/linux/http/goahead_ldpreload GoAhead Web Server LD_PRELOAD Arbitrary Module Load · metasploit exploit, excellent rank · 2017-12-18
  • EDB-43877 GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Arbitrary Module Load (Metasploit) · remote · 2018-01-24
  • EDB-43360 GoAhead Web Server 2.5 < 3.6.5 - HTTPd 'LD_PRELOAD' Remote Code Execution · remote · 2017-12-18

CVSS scores

Assigned byVersionScoreVector
CISA ADP3.18.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD3.18.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA3.18.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.06.8AV:N/AC:M/Au:N/C:P/I:P/A:P

References

  • github.com /elttam/advisories/tree/master/CVE-2017-17562 · x_refsource_MISC, x_transferred
  • securitytracker.com /id/1040702 · vdb-entry, x_refsource_SECTRACK, x_transferred
  • elttam.com.au /blog/goahead/ · x_refsource_MISC, x_transferred
  • exploit-db.com /exploits/43360/ · exploit, x_refsource_EXPLOIT-DB, x_transferred
  • oracle.com /technetwork/security-advisory/cpuapr2018-3678067.html · x_refsource_CONFIRM, x_transferred
  • github.com /embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74 · x_refsource_MISC, x_transferred
  • github.com /embedthis/goahead/issues/249 · x_refsource_MISC, x_transferred
  • exploit-db.com /exploits/43877/ · exploit, x_refsource_EXPLOIT-DB, x_transferred
  • cisa.gov /known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-17562 · government-resource

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.