VYPR
Critical severityNVD Advisory· Published Sep 15, 2022· Updated Aug 3, 2024

CVE-2022-38352

CVE-2022-38352

Description

ThinkPHP v6.0.13 was discovered to contain a deserialization vulnerability via the component League\Flysystem\Cached\Storage\Psr6Cache. This vulnerability allows attackers to execute arbitrary code via a crafted payload.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

ThinkPHP v6.0.13 contains a deserialization vulnerability in Psr6Cache allowing arbitrary code execution via crafted payload.

Vulnerability

Description

ThinkPHP v6.0.13 is vulnerable to insecure deserialization in the component League\Flysystem\Cached\Storage\Psr6Cache. The flaw arises when user-controlled serialized data is unserialized, allowing an attacker to control object properties and trigger a gadget chain [1][2].

Exploitation

An attacker can exploit this by crafting a serialized payload that leverages PHP object injection. The exploit chain uses classes from the think\log\driver\Socket, think\log\Channel, and think\App namespaces to eventually call the Php::display method, which can execute arbitrary PHP code [2]. No authentication is required if the application deserializes untrusted input.

Impact

Successful exploitation allows remote code execution in the context of the web server, potentially leading to complete compromise of the application and server. Attackers can execute system commands, read/write files, and perform other malicious actions [1][2].

Mitigation

Users should upgrade to a patched version of ThinkPHP. The vulnerability was reported publicly, and the vendor has likely addressed it in subsequent releases; refer to the official GitHub repository for updates [3]. As of publication, no official patch version is specified in the references.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
topthink/frameworkPackagist
<= 6.0.13

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.