Live threats

All CVEs / Yiiframework

CVE-2018-7269Yiiframework Yii

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Mar 21, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yii.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist yiisoft/yii2-dev < 2.0.12.1 2.0.12.1 composer require "yiisoft/yii2-dev:^2.0.12.1"
Packagist yiisoft/yii2-dev ≥ 2.0.13 < 2.0.13.2 2.0.13.2 composer require "yiisoft/yii2-dev:^2.0.13.2"
Packagist yiisoft/yii2-dev ≥ 2.0.14 < 2.0.15 2.0.15 composer require "yiisoft/yii2-dev:^2.0.15"

Per OSV / GitHub Advisories (GHSA-hhg2-g6h6-c266). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
yiiframeworkyii≥ 2.0.0 < 2.0.15

Official sources

References

Links published by the sources. Open them with care.