CVE-2017-9841: Code Injection in PHPUnit

critical KEV Affects phpunit/phpunit. Feed 2026.11.23.2, updated 2026-11-23; published ; advisory modified ; listed on CISA KEV 2022-02-15.

Code Injection in PHPUnit

Package
phpunit/phpunit Composer
Affected versions
>=4.8.19 and <4.8.28 or >=5.0.10 and <5.6.3
Fixed in
4.8.28, 5.6.3
Severity
critical  CVSS 9.8
Exploitation
KEV listed by CISA as actively exploited · EPSS 100% (100.0th percentile)
Published
2022-03-26
Source
osv.dev

References

CWE-94
NVD recordphpunit/phpunit advisories

Quick answers

Is CVE-2017-9841 being actively exploited?

Yes. It is on CISA's Known Exploited Vulnerabilities list (added 2022-02-15), which means attackers are using it now.

Which version fixes CVE-2017-9841?

phpunit/phpunit: 4.8.28, 5.6.3.

How do I check whether I am affected?

Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories