# CVE-2021-3692: Use of Cryptographically Weak Pseudo-Random Number Generator in yiisoft/yii2-dev

Source: https://junglewise.ai/threats/cve-2021-3692-use-of-cryptographically-weak-pseudo-random-number-generator-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-09-01  
License: CC BY 4.0 with a link back

CVE-2021-3692 · Severity: low · CVSS 3.1 · Published 2021-09-01

Use of Cryptographically Weak Pseudo-Random Number Generator in yiisoft/yii2-dev

Technologies: [yiisoft/yii2-dev (Packagist)](https://junglewise.ai/threats/technologies/yiisoft-yii2-dev). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2021-3692 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-3692 being exploited in the wild.

**How severe is CVE-2021-3692?** Low severity, with a CVSS score of 3.1, published 1 September 2021.

**Which products and versions are affected?** yiisoft/yii2-dev (Packagist) ECOSYSTEM:introduced=0,fixed=2.0.43.

**Is there a fix for CVE-2021-3692?** Yes. yiisoft/yii2-dev (Packagist): upgrade to 2.0.43 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-3692?** Check whether you run yiisoft/yii2-dev (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- yiisoft/yii2-dev (Packagist): upgrade to 2.0.43 or later

  ```sh
  composer require yiisoft/yii2-dev:^2.0.43
  ```


## Affected products

- yiisoft/yii2-dev (Packagist) ECOSYSTEM:introduced=0,fixed=2.0.43

## Identifiers

- CVE-2021-3692
- GHSA-wwvv-x5mq-h3jj

## Related threats

- [yiisoft Yii2 Deserialization of Untrusted Data](https://junglewise.ai/threats/cve-2025-2689-yiisoft-yii2-deserialization-of-untrusted-data)
- [Yii SQL injection vulnerability](https://junglewise.ai/threats/cve-2018-7269-yii-sql-injection-vulnerability)
- [Yii Framework Code Injection](https://junglewise.ai/threats/cve-2018-8074-yii-framework-code-injection)
- [Yii Cross-site Scripting Framework vulnerability](https://junglewise.ai/threats/cve-2017-11516-yii-cross-site-scripting-framework-vulnerability)
- [Yii Framework Cross-Site Request Forgery (CSRF)](https://junglewise.ai/threats/cve-2018-6009-yii-framework-cross-site-request-forgery-csrf)
