CVE-2018-7269Yiiframework Yii
Critical 9.8 No auth needed
Follow: this CVE · Yiiframework · Yiiframework Yii We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Yii.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| yiiframework | yii | ≥ 2.0.0 < 2.0.15 |
Official sources
References
Links published by the sources. Open them with care.
- www.yiiframework.com Vendor Advisory