Insecure Randomness Affecting yiisoft/yii2 package, versions <2.0.43


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-YIISOFTYII2-1540297
  • published11 Aug 2021
  • disclosed11 Aug 2021
  • creditUnknown

Introduced: 11 Aug 2021

CVE-2021-3692  (opens in a new tab)
CWE-330  (opens in a new tab)

How to fix?

Upgrade yiisoft/yii2 to version 2.0.43 or higher.

Overview

yiisoft/yii2 is a Yii PHP Framework.

Affected versions of this package are vulnerable to Insecure Randomness. The mt_rand() function in CaptchaAction.php generates a weak random number.

References

CVSS Scores

version 3.1