Vulnerabilities/

CVE-2017-9841

CVE

CVE-2017-9841

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by a...

Severity

Critical

Base CVSS

9.8

Fixed in

284a69fb88a2d0845d23f42974a583d8f59bf5a5,5.4.6-2,5.6.3

Description

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.

Severity scores

Source

Severity

Base score

CVSS version

Score vector

NVD

Critical

9.8

3.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

OSV

0

3.1

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Endor Labs

Required action

Apply updates per vendor instructions.

Known ransomware campaign use

Unknown

References

http://www.securityfocus.com/bid/101798, http://www.securitytracker.com/id/1039812, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841, http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/, https://security.gentoo.org/glsa/201711-15, https://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5, https://github.com/sebastianbergmann/phpunit/pull/1956, https://www.oracle.com/security-alerts/cpuoct2021.html

Basic information

Base CVSS

9.8

EPSS probability

1.0

EPSS percentile

0.99993

Introduced version

49f1c93ee37d10ffba6ce287d67110547b40b1d7,0,5.0.0

Fix available

284a69fb88a2d0845d23f42974a583d8f59bf5a5,5.4.6-2,5.6.3

Endor Patches

Fix critical vulnerabilities instantly

Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.

Fix without upgrading

Get a demo of Endor Labs today.