CVE-2017-9841

critical KEV
Published 2022-03-26 ยท Modified 2022-02-15
CVSS v3
โ€”
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

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.

CISA KEV

Vendor
PHPUnit
Product
PHPUnit
Due date
2022-08-15

Predictions

Exploit likelihood
99%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-50702 webapps php
souzo ยท 2022-02-02

PHP Unit 4.8.28 - Remote Code Execution (RCE) (Unauthenticated)

Source code queued for fetch โ€” refresh in a moment.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 1.28.3-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 5.4.6-2
sid Fixed 5.4.6-2
forky Fixed 5.4.6-2
bullseye Fixed 5.4.6-2
bookworm Fixed 5.4.6-2

Package impact

EcosystemPackageVulnerableFixed
php Packagistphpunit/phpunit>=4.8.19,<4.8.284.8.28
php Packagistphpunit/phpunit>=5.0.10,<5.6.35.6.3

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.