CVE-2021-36564 Deserialization of Untrusted Data in topthink/framework
A deserialization vulnerability in the Flysystem cached adapter allows attackers to execute arbitrary code via crafted input.
- 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-36564?
CVE-2021-36564 is a critical unsafe deserialization vulnerability in n/a, published on 6 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ThinkPHP v6.0.8 was discovered to contain a deserialization vulnerability via the component vendor\league\flysystem-cached-adapter\src\Storage\Adapter.php.
Weakness: CWE-502
Which versions are affected by CVE-2021-36564?
2 open source packages ship an affected version, including topthink/framework. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
topthink/framework Packagist | All versions | 6.0.9 |
topthink/framework Packagist | All versions | 6.0.9 |
Products include Thinkphp Thinkphp.
How do I fix CVE-2021-36564?
Upgrade topthink/framework to 6.0.9 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-36564 being exploited?
There is no known exploitation of CVE-2021-36564 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-33gc-6cw9-w3g4.