topthink/thinkphp: is it safe?

Short answer: Every vulnerability listed here affects version 8.0.4 or earlier. Versions after 8.0.4 are not known to be affected. 1 actively exploited.

Composer topthink/thinkphp has 3 known advisories in the phpwarden feed, 1 actively exploited. Feed 2026.11.23.2, updated 2026-11-23.

3advisories
2critical
1on CISA KEV
2no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2019-9082 KEVThinkPHP: remote command execution via invokefunction and call_user_func_arrayhigh8.8<3.2.43.2.4
CVE-2020-20120SQL Injection in topthink/thinkphpcritical9.8<=3.2.3–
CVE-2024-48112ThinkPHP deserialization vulnerabilitycritical9.8>=6.1.3 and <=8.0.4–

Quick answers

Is topthink/thinkphp safe to use?

Every vulnerability listed here affects version 8.0.4 or earlier. Versions after 8.0.4 are not known to be affected.

Is topthink/thinkphp being actively exploited?

Yes. 1 of its 3 known vulnerabilities is on CISA's Known Exploited Vulnerabilities list, meaning attackers are using it now. Update before anything else.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

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
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/topthink/thinkphp.svg)](https://phpwarden.io/packages/topthink/thinkphp)