Arbitrary Code Injection Affecting phpunit package, versions <5.4.6-2~deb9u1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
100% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN9-PHPUNIT-294033
  • published27 Jun 2017
  • disclosed27 Jun 2017

Introduced: 27 Jun 2017

CVE-2017-9841  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Debian:9 phpunit to version 5.4.6-2~deb9u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream phpunit package and not the phpunit package as distributed by Debian. See How to fix? for Debian:9 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1