CVE-2018-20062: ThinkPHP 5: remote code execution through the controller/filter request handling (fixed in the 5.0.23 and 5.1.31 security releases)

critical KEV Affects topthink/framework. Feed 2026.11.23.2, updated 2026-11-23; CVE published 2018; listed on CISA KEV 2021-11-03.

ThinkPHP 5: remote code execution through the controller/filter request handling (fixed in the 5.0.23 and 5.1.31 security releases)

Package
topthink/framework Composer
Affected versions
>=5.0.0 and <5.0.23 or >=5.1.0 and <5.1.31
Fixed in
5.0.23, 5.1.31
Severity
critical  CVSS 9.8
Exploitation
KEV listed by CISA as actively exploited · EPSS 100% (99.9th percentile)

References

NVD recordtopthink/framework advisories

Quick answers

Is CVE-2018-20062 being actively exploited?

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

Which version fixes CVE-2018-20062?

topthink/framework: 5.0.23, 5.1.31.

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