CVE-2017-17562

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...

Basic Information

CVE State
PUBLISHED
Reserved Date
December 12, 2017
Published Date
December 12, 2017
Last Updated
February 04, 2025
Vendor
n/a
Product
n/a
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 Scores

SSVC Information

Exploitation
active
Technical Impact
total

Exploit Status

Exploited in the Wild
Yes (added 2021-12-10 00:00:00 UTC) Source
Proof of Concept Available
Yes (added 2019-11-23 08:40:49 UTC) Source

Known Exploited Vulnerability Information

Source Added Date
CISA 2021-12-10 00:00:00 UTC

Potential Proof of Concepts

Warning: These PoCs have not been tested and could contain malware. Use at your own risk.

goahead_ldpreload

Type: metasploit • Created: Unknown

Metasploit module for CVE-2017-17562

freitzzz/bash-CVE-2017-17562

Type: github • Created: 2021-11-17 18:21:54 UTC • Stars: 1

PoC for CVE-2017-17562 written in bash

crispy-peppers/Goahead-CVE-2017-17562

Type: github • Created: 2019-11-23 08:40:49 UTC • Stars: 0

ivanitlearning/CVE-2017-17562

Type: github • Created: 2019-10-16 16:28:27 UTC • Stars: 9

Standalone Python 3 exploit for CVE-2017-17562

1337g/CVE-2017-17562

Type: github • Created: 2017-12-27 05:46:50 UTC • Stars: 1

CVE-2017-17562 GOAHEAD RCE (Author: Daniel Hodson)