CVE-2021-23592: Deserialization of Untrusted Data in topthink/framework
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
You can find more information about this vulnerability in the GitHub Advisory Database at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3fpv-54ff-wqfj/GHSA-3fpv-54ff-wqfj.json
Related vulnerabilities
Recent vulnerabilities recorded for topthink/framework.