Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yiisoft/yii2
  4. ›
  5. CVE-2018-7269

CVE-2018-7269: SQL injection

March 21, 2018 (updated April 20, 2018)

The findByCondition function in framework/db/ActiveRecord.php 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2018-7269
  • www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes

Code Behaviors & Features

Detect and mitigate CVE-2018-7269 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.12.1, all versions starting from 2.0.13.0alpha before 2.0.13.2, all versions starting from 2.0.14.0alpha before 2.0.15

Fixed versions

  • 2.0.12.1
  • 2.0.13.2
  • 2.0.15

Solution

Upgrade to versions 2.0.12.1, 2.0.13.2, 2.0.15 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/yiisoft/yii2/CVE-2018-7269.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.