CVE-2021-23592 Deserialization of Untrusted Data

High 7.7 Published Updated

An attacker can execute arbitrary code by exploiting insecure deserialization in the Driver class of the topthink/framework PHP library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23592?

CVE-2021-23592 is a high-severity unsafe deserialization vulnerability in topthink/framework, published on 6 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package topthink/framework before 6.0.12 are vulnerable to Deserialization of Untrusted Data due to insecure unserialize method in the Driver class.

Weakness: CWE-502

Which versions are affected by CVE-2021-23592?

2 open source packages ship an affected version, including topthink/framework. It affects 1 product.

PackageAffectedFixed in
topthink/framework PackagistAll versions6.0.12
topthink/framework PackagistAll versions6.0.12

Products include Thinkphp Thinkphp.

How do I fix CVE-2021-23592?

Upgrade topthink/framework to 6.0.12 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-23592 being exploited?

There is no known exploitation of CVE-2021-23592 in the wild and no public exploit code.

Sources

Also known as GHSA-3fpv-54ff-wqfj, SNYK-PHP-TOPTHINKFRAMEWORK-2385695.

Is CVE-2021-23592 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free