Vulnerability record

CVE-2017-9841

PHPUnit Command Injection Vulnerability

Severity: CriticalExploitation: Exploitation confirmedCISA KEV
What should I do?

This vulnerability is in the CISA Known Exploited Vulnerabilities catalog: attackers are using it. If you run PHPUnit, fix it now.

CISA required action: Apply updates per vendor instructions.

US federal civilian agencies must remediate by Aug 15, 2022.

Patch status

Official fix available since

Apply the vendor's update to every affected system. Check the fixed-in versions below where known.

Basis: NVD patch reference

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.

Source: NIST National Vulnerability Database. Official vulnerability data, reproduced as published.

Affected products

Products affected by this vulnerability, with versions and the source of each entry
ProductVendorSource
PHPUnitPHPUnitKEV

Sources: KEV = CISA Known Exploited Vulnerabilities catalog. Version details have not been published yet.

Intelligence timeline

Developments from the last 30 days, newest first.

  1. CVSS scoredUpdateKEV

    CVE-2017-9841 scored CVSS 9.8: PHPUnit PHPUnit, PHPUnit Command Injection Vulnerability

    CISA lists this as exploited in the wild. Unpatched PHPUnit systems are exposed to active attacks now.

    Basis: NIST National Vulnerability Database

  2. Patch releasedUpdateKEV

    Patch released for CVE-2017-9841: PHPUnit PHPUnit, PHPUnit Command Injection Vulnerability

    An official fix is now available for PHPUnit PHPUnit. This vulnerability is being exploited, so apply it promptly.

    Basis: NVD patch reference

1 earlier event is available with a subscription. See plans.

Coverage

We have not published a story about this vulnerability yet.

References

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