All vulnerabilities
CVE-2017-9841

PHPUnit Command Injection Vulnerability

PHPUnit PHPUnit
CVSS
9.8Critical
ExploitationExploited in the wildAdded to KEV 15 Feb 2022CISA KEV
Exploit odds (EPSS)>99.9%Chance of exploitation activity in the next 30 days, higher than 99.9% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
Federal deadline15 Aug 2022Remediation due date for US federal agenciesCISA KEV
CISA required actionApply updates per vendor instructions. CISA KEV

What fixes it

No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.

Timeline

  1. 27 Jun 2017, 17:00 UTCPublishedCVE List
  2. 2 Feb 2022Exploit code publicExploit-DB
  3. 15 Feb 2022Added to CISA KEVCISA KEV

Public exploit code and templates 2

  • Webapps exploitPHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated) 2 Feb 2022Exploit-DB
  • Scanner templatePHPUnit - Remote Code ExecutionNuclei

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Description

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

Text from CVE List

Affected versions 1

  • n/aaffected: n/aCVE List

References 6