CVE-2017-17562

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

Basic Data

PublishedDecember 12, 2017
Last ModifiedApril 20, 2018
Assignercve@mitre.org
Data TypeCVE
Data FormatMITRE
Data Version4.0
Problem TypeCWE-20
CVE Data Version4.0

Base Metric V2

CVSS 2 - Version2.0
CVSS 2 - Vector StringAV:N/AC:M/Au:N/C:P/I:P/A:P
CVSS 2 - Access VectorNETWORK
CVSS 2 - Access ComplexityMEDIUM
CVSS 2 - AuthenticationNONE
CVSS 2 - Confidentiality ImpactPARTIAL
CVSS 2 - Availability ImpactPARTIAL
CVSS 2 - Base Score6.8
SeverityMEDIUM
Exploitability Score8.6
Impact Score6.4
Obtain All Privilegefalse
Obtain User Privilegefalse
Obtain Other Privilegefalse

Base Metric V3

CVSS 3 - Version3.0
CVSS 3 - Vector StringCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3 - Attack VectorNETWORK
CVSS 3 - Attack ComplexityHIGH
CVSS 3 - Privileges RequiredNONE
CVSS 3 - User InteractionNONE
CVSS 3 - ScopeUNCHANGED
CVSS 3 - Confidentiality ImpactHIGH
CVSS 3 - Integrity ImpactHIGH
CVSS 3 - Availability ImpactHIGH
CVSS 3 - Base Score8.1
CVSS 3 - Base SeverityHIGH
Exploitability Score2.2
Base SeverityHIGH

Configurations

  • OR - Configuration 1
    Cpe VersionPartVendorProductVersionUpdateEditionLanguageSW EditionTarget SWTarget HWOtherVersion Start IncludingVersion End IncludingVersion Start ExcludingVersion End Excluding
    2.3ApplicationEmbedthisGoahead********3.6.5

Vulnerable Software List

VendorProductVersions
Embedthis Goahead *

References

NameSourceURLTags
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.htmlhttp://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.htmlCONFIRM
1040702http://www.securitytracker.com/id/1040702SECTRACK
https://github.com/elttam/advisories/tree/master/CVE-2017-17562https://github.com/elttam/advisories/tree/master/CVE-2017-17562MISCThird Party Advisory
https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74https://github.com/embedthis/goahead/commit/6f786c123196eb622625a920d54048629a7caa74MISCPatch Third Party Advisory
https://github.com/embedthis/goahead/issues/249https://github.com/embedthis/goahead/issues/249MISCIssue Tracking Third Party Advisory
https://www.elttam.com.au/blog/goahead/https://www.elttam.com.au/blog/goahead/MISCExploit Patch Third Party Advisory
43360https://www.exploit-db.com/exploits/43360/EXPLOIT-DBExploit Third Party Advisory VDB Entry
43877https://www.exploit-db.com/exploits/43877/EXPLOIT-DB