Prevent RCE when deserializing untrusted user input
Published 21 Nov 2022 · Updated 8 Nov 2023
Is your project on an affected yiisoft/yii?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.1.27
- Fixed in
- 1.1.27
composer require yiisoft/yii:^1.1.27Details
Impact
Affected versions of yiisoft/yii are vulnerable to Remote Code Execution (RCE) if the application calls unserialize() on arbitrary user input.
Patches
Upgrade yiisoft/yii to version 1.1.27 or higher.
For more information
See the following links for more details:
- Git commit
- https://owasp.org/www-community/vulnerabilities/PHP_Object_Injection
If you have any questions or comments about this advisory, contact us through security form.
Is GHSA-442f-wcwq-fpcf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected yiisoft/yii, and gives you the command that fixes it.
More advisories for yiisoft/yii
- MediumCVE-2025-32027Yii does not prevent XSS in scenarios where fallback error renderer is used · 11 Apr 2025
- HighCVE-2023-47130yiisoft/yii deserializing untrusted user input can lead to remote code execution · 14 Nov 2023
- HighCVE-2014-4672Yii PHP Framework arbitrary PHP scripts execution · 17 May 2022
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.