CVE-2022-45982 Deserialization of Untrusted Data in thinkphp

Critical 9.8 Published Updated

Attackers can execute arbitrary code in ThinkPHP applications by exploiting a deserialization vulnerability with crafted payloads.

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

What is CVE-2022-45982?

CVE-2022-45982 is a critical unsafe deserialization vulnerability in n/a, published on 8 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

thinkphp 6.0.0~6.0.13 and 6.1.0~6.1.1 contains a deserialization vulnerability. This vulnerability allows attackers to execute arbitrary code via a crafted payload.

Weakness: CWE-502

Which versions are affected by CVE-2022-45982?

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

PackageAffectedFixed in
topthink/think PackagistAll versions to 6.1.1None
topthink/think PackagistAll versions to 6.1.1None

Products include Thinkphp Thinkphp.

How do I fix CVE-2022-45982?

No fix has been published for CVE-2022-45982 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2022-45982 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45982 exists.

Sources

Also known as GHSA-j2h2-g882-x9j2.

Is CVE-2022-45982 in your software?

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

Check your SBOMs for free