yiiframework CVE Vulnerabilities & Metrics

Focus on yiiframework vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About yiiframework Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with yiiframework. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total yiiframework CVEs: 16
Earliest CVE date: 03 Jul 2014, 17:55 UTC
Latest CVE date: 22 Dec 2023, 19:15 UTC

Latest CVE reference: CVE-2023-50714

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): -100.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): -100.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical yiiframework CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.21

Max CVSS: 7.5

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 5
4.0-6.9 8
7.0-8.9 4
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS yiiframework CVEs

These are the five CVEs with the highest CVSS scores for yiiframework, sorted by severity first and recency.

All CVEs for yiiframework

CVE-2023-50714 yiiframework vulnerability CVSS: 0 22 Dec 2023, 19:15 UTC

yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth2 PKCE implementation is vulnerable in 2 ways. First, the `authCodeVerifier` should be removed after usage (similar to `authState`). Second, there is a risk for a `downgrade attack` if PKCE is being relied on for CSRF protection. Version 2.2.15 contains a patch for the issue. No known workarounds are available.

CVE-2023-50708 yiiframework vulnerability CVSS: 0 22 Dec 2023, 19:15 UTC

yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth1/2 `state` and OpenID Connect `nonce` is vulnerable for a `timing attack` since it is compared via regular string comparison (instead of `Yii::$app->getSecurity()->compareString()`). Version 2.2.15 contains a patch for the issue. No known workarounds are available.

CVE-2015-5467 yiiframework vulnerability CVSS: 0 21 Sep 2023, 06:15 UTC

web\ViewAction in Yii (aka Yii2) 2.x before 2.0.5 allows attackers to execute any local .php file via a relative path in the view parameeter.

CVE-2022-31454 yiiframework vulnerability CVSS: 0 28 Jul 2023, 02:15 UTC

Yii 2 v2.0.45 was discovered to contain a cross-site scripting (XSS) vulnerability via the endpoint /books. NOTE: this is disputed by the vendor because the cve-2022-31454-8e8555c31fd3 page does not describe why /books has a relationship to Yii 2.

CVE-2023-26750 yiiframework vulnerability CVSS: 0 04 Apr 2023, 15:15 UTC

SQL injection vulnerability found in Yii Framework Yii 2 Framework before v.2.0.47 allows the a remote attacker to execute arbitrary code via the runAction function. NOTE: the software maintainer's position is that the vulnerability is in third-party code, not in the framework.

CVE-2021-3692 yiiframework vulnerability CVSS: 5.0 10 Aug 2021, 17:15 UTC

yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator

CVE-2021-3689 yiiframework vulnerability CVSS: 5.0 10 Aug 2021, 11:15 UTC

yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator

CVE-2020-15148 yiiframework vulnerability CVSS: 7.5 15 Sep 2020, 19:15 UTC

Yii 2 (yiisoft/yii2) before version 2.0.38 is vulnerable to remote code execution if the application calls `unserialize()` on arbitrary user input. This is fixed in version 2.0.38. A possible workaround without upgrading is available in the linked advisory.

CVE-2018-20745 yiiframework vulnerability CVSS: 4.3 28 Jan 2019, 08:29 UTC

Yii 2.x through 2.0.15.1 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.

CVE-2018-8074 yiiframework vulnerability CVSS: 6.8 21 Mar 2018, 18:29 UTC

Yii 2.x before 2.0.15 allows remote attackers to inject unintended search conditions via a variant of the CVE-2018-7269 attack in conjunction with the Elasticsearch extension.

CVE-2018-8073 yiiframework vulnerability CVSS: 7.5 21 Mar 2018, 18:29 UTC

Yii 2.x before 2.0.15 allows remote attackers to execute arbitrary LUA code via a variant of the CVE-2018-7269 attack in conjunction with the Redis extension.

CVE-2018-7269 yiiframework vulnerability CVSS: 7.5 21 Mar 2018, 18:29 UTC

The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to conduct SQL injection attacks via a findOne() or findAll() call, unless a developer recognizes an undocumented need to sanitize array input.

CVE-2018-6010 yiiframework vulnerability CVSS: 5.0 22 Jan 2018, 22:29 UTC

In Yii Framework 2.x before 2.0.14, remote attackers could obtain potentially sensitive information from exception messages, or exploit reflected XSS on the error handler page in non-debug mode. Related to base/ErrorHandler.php, log/Dispatcher.php, and views/errorHandler/exception.php.

CVE-2018-6009 yiiframework vulnerability CVSS: 6.8 22 Jan 2018, 22:29 UTC

In Yii Framework 2.x before 2.0.14, the switchIdentity function in web/User.php did not regenerate the CSRF token upon a change of identity.

CVE-2017-11516 yiiframework vulnerability CVSS: 4.3 21 Jul 2017, 19:29 UTC

An XSS vulnerability exists in framework/views/errorHandler/exception.php in Yii Framework 2.0.12 affecting the exception screen when debug mode is enabled, because $exception->errorInfo is mishandled.

CVE-2015-3397 yiiframework vulnerability CVSS: 4.3 14 May 2015, 00:59 UTC

Cross-site scripting (XSS) vulnerability in Yii Framework before 2.0.4 allows remote attackers to inject arbitrary web script or HTML via vectors related to JSON, arrays, and Internet Explorer 6 or 7.

CVE-2014-4672 yiiframework vulnerability CVSS: 7.5 03 Jul 2014, 17:55 UTC

The CDetailView widget in Yii PHP Framework 1.1.14 allows remote attackers to execute arbitrary PHP scripts via vectors related to the value property.