Arbitrary Code Injection Affecting phpunit package, versions <5.1.3-1+ubuntu3+esm1


Severity

Recommended
high

Based on Ubuntu security rating.

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-UBUNTU1604-PHPUNIT-294035
  • 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 Ubuntu:16.04 phpunit to version 5.1.3-1+ubuntu3+esm1 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 Ubuntu. See How to fix? for Ubuntu:16.04 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