CVE-2021-23592: Deserialization of Untrusted Data in topthink/framework

topthink/framework Updated 02 Oct 2025

Summary

07/05/2022
Yes i
Critical
9.8

CVE-2021-23592: Deserialization of Untrusted Data in topthink/framework. Affects topthink/framework versions < 6.0.12. Fixed in 6.0.12. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The topthink/framework package is a PHP framework that provides a set of tools and components for building web applications. It is widely used in the PHP ecosystem and offers various features such as routing, database abstraction, and caching. However, versions prior to 6.0.12 are vulnerable to a Deserialization of Untrusted Data issue.

Vulnerability Detail

The vulnerability in topthink/framework arises from an insecure unserialize method in the Driver class. This allows an attacker to manipulate serialized data in a way that can lead to arbitrary code execution. An attacker could exploit this vulnerability by sending malicious serialized data to a vulnerable application, potentially compromising the integrity, confidentiality, and availability of the system.

How To Fix

Minimum fixed version

6.0.12

This is the first release that contains the fix.

composer require topthink/framework:6.0.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the package as soon as possible.

Conclusion

The topthink/framework package prior to version 6.0.12 is vulnerable to a critical deserialization issue. It is crucial to update to the fixed version to mitigate the risk of arbitrary code execution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for topthink/framework →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary code on a vulnerable system, potentially leading to unauthorized access, data breaches, and system compromise.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your composer.lock file to the playground and it will provide real-time alerts for open-source vulnerabilities.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, it is important to apply the recommended fix to prevent any potential exploitation.

Yes, the CVSS score for this vulnerability is 9.8, indicating a critical severity level.

Related vulnerabilities

Recent vulnerabilities recorded for topthink/framework.

How To Fix

Minimum fixed version

6.0.12

This is the first release that contains the fix.

composer require topthink/framework:6.0.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback