The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15…
Priority MEDIUM 46CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
EPSS 0.01897 79th percentileScored 2026-11-07
Fix Fixed yiisoft/yii2-dev (Packagist): 2.0.12.1, 2.0.13.2, 2.0.15
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | yiisoft/yii2-dev (Packagist) | before 2.0.12.1 | 2.0.12.1 | Patch available | GHSA-hhg2-g6h6-c266 |
| — | yiisoft/yii2-dev (Packagist) | 2.0.13 to before 2.0.13.2 | 2.0.13.2 | Patch available | GHSA-hhg2-g6h6-c266 |
| — | yiisoft/yii2-dev (Packagist) | 2.0.14 to before 2.0.15 | 2.0.15 | Patch available | GHSA-hhg2-g6h6-c266 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- yiisoft/yii2-dev (Packagist) Vendor— Affected before 2.0.12.1 Fixed in 2.0.12.1 Patch available GHSA-hhg2-g6h6-c266
- yiisoft/yii2-dev (Packagist) Vendor— Affected 2.0.13 to before 2.0.13.2 Fixed in 2.0.13.2 Patch available GHSA-hhg2-g6h6-c266
- yiisoft/yii2-dev (Packagist) Vendor— Affected 2.0.14 to before 2.0.15 Fixed in 2.0.15 Patch available GHSA-hhg2-g6h6-c266
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* | 2.0.0 to before 2.0.15 | Vulnerable | Yiiframework |
- cpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* Versions 2.0.0 to before 2.0.15 Vulnerable ·Yiiframework
Remediation
- Fix · GHSA-hhg2-g6h6-c266 yiisoft/yii2-dev (Packagist) Fixed in 2.0.12.1 Advisory →
- Fix · GHSA-hhg2-g6h6-c266 yiisoft/yii2-dev (Packagist) Fixed in 2.0.13.2 Advisory →
- Fix · GHSA-hhg2-g6h6-c266 yiisoft/yii2-dev (Packagist) Fixed in 2.0.15 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2018-7269
- 2026-10-03 Alias added: GHSA-hhg2-g6h6-c266
References
Advisory 2
More Yiiframework Yii vulnerabilities
- TI-2024-38344 Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class… KEVCVSS 3.1CRITICAL 9.8
- TI-2020-11920 Unsafe deserialization in Yii 2 CVSS 3.1CRITICAL 10.0
- TI-2024-04634 Unsafe Reflection in base Component class in yiisoft/yii2 CVSS 3.1CRITICAL 9.1
- TI-2025-02355 yiisoft Yii2 MockClass.php generate deserialization CVSS 4.0MEDIUM 5.3
- TI-2025-02354 yiisoft Yii2 SortableIterator.php getIterator deserialization CVSS 4.0MEDIUM 5.3
- TI-2023-11755 SQL injection vulnerability found in Yii Framework Yii 2 Framework before v.2.0.47 allows… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2018-7269 · CVE Program
- CVE-2018-7269 · NVD
- FIRST EPSS
- GHSA-hhg2-g6h6-c266 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences