Skip to main content
← All vulnerabilities
CVE-2017-9841GHSA-R7C9-C69M-RPH8

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 da

Published
Last modified
published
Listed in CISA KEV
Fix
Fixed in 4.8.28, 5.6.3
None on Exploit-DB, Metasploit or GitHub

Summary

PHPUnit, a widely used testing framework for PHP, is affected by this vulnerability. An attacker can remotely run arbitrary PHP code on a server if its vendor folder is publicly accessible, potentially giving them full control of the affected system.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • phpunit/phpunitPackagist

    From 4.8.19 · fixed in 4.8.28

  • phpunit/phpunitPackagist

    From 5.0.10 · fixed in 5.6.3

References 7

securityfocus.com

securitytracker.com

security.gentoo.org

oracle.com

GitHub · sebastianbergmann/phpunit

web.archive.org