CVE-2022-41922 Prevent RCE when deserializing untrusted user input
Attackers can achieve remote code execution if the application unsafely deserializes user input using the Yii framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-41922?
CVE-2022-41922 is a high-severity unsafe deserialization vulnerability in yiisoft yii, published on 23 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
`yiisoft/yii` before version 1.1.27 are vulnerable to Remote Code Execution (RCE) if the application calls `unserialize()` on arbitrary user input. This has been patched in 1.1.27.
Weakness: CWE-502
Which versions are affected by CVE-2022-41922?
2 open source packages ship an affected version, including yiisoft/yii. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
yiisoft/yii Packagist | All versions | 1.1.27 |
yiisoft/yii Packagist | All versions | 1.1.27 |
Products include Yiiframework Yii.
How do I fix CVE-2022-41922?
Upgrade yiisoft/yii to 1.1.27 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2022-41922 being exploited?
There is no known exploitation of CVE-2022-41922 in the wild and no public exploit code.
Other vulnerabilities in yiisoft yii
- CVE-2024-58136 Yiiframework Yii Improper Protection of Alternate Path
- CVE-2015-5467 Yii2 allows attackers to execute any local .php file via a relative path in the view parameter
- CVE-2023-26750 SQL injection in n/a
- CVE-2018-7269 Yii SQL injection vulnerability
- CVE-2018-8073 yii2-redis Potential Remote code execution
Sources
Also known as GHSA-442f-wcwq-fpcf.