CVE-2026-24765: PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling

high Affects phpunit/phpunit. Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

PHPUnit Vulnerable to Unsafe Deserialization in PHPT Code Coverage Handling

Package
phpunit/phpunit Composer
Affected versions
<8.5.52 or >=9.0.0 and <9.6.33 or >=10.0.0 and <10.5.62 or >=11.0.0 and <11.5.50 or >=12.0.0 and <12.5.8 or >=0 and <8.5.52
Fixed in
8.5.52, 9.6.33, 10.5.62, 11.5.50, 12.5.8
Severity
high  CVSS 7.8
Exploitation
not on CISA KEV · EPSS 0% (32.4th percentile)
Published
2026-01-27
Source
osv.dev

References

CWE-502
NVD recordphpunit/phpunit advisories

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 20,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