HighGHSA-mw2w-2hj2-fg8qCVE-2023-47130

yiisoft/yii deserializing untrusted user input can lead to remote code execution

Published 14 Nov 2023 · Updated 16 Feb 2024

Is your project on an affected yiisoft/yii?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

yiisoft/yiiComposer
Affected
<1.1.29
Fixed in
1.1.29
Update to the fixed version for your release line, for example:composer require yiisoft/yii:^1.1.29

Details

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.29 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-mw2w-2hj2-fg8q 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-2022-41922Prevent RCE when deserializing untrusted user input · 21 Nov 2022
  • HighCVE-2014-4672Yii PHP Framework arbitrary PHP scripts execution · 17 May 2022
yiisoft/yii security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.