Loading...
Skip to main content

CVE-2018-7269 — Vulnerability in yiisoft/yii2-dev — CVE Details

CRITICAL

Yii SQL injection vulnerability

Published May 24, 2022Updated April 24, 2024Source: osv

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.

Advisory Timeline

  • First published May 24, 2022 (1602 days ago).
  • Last revised April 24, 2024 — 701 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update yiisoft/yii2-dev to 2.0.13.2 or later
composer require "yiisoft/yii2-dev:^2.0.13.2"
Composer
Update yiisoft/yii2-dev to 2.0.15 or later
composer require "yiisoft/yii2-dev:^2.0.15"
Composer
Update yiisoft/yii2-dev to 2.0.12.1 or later
composer require "yiisoft/yii2-dev:^2.0.12.1"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
yiisoft/yii2-dev
packagist
2.0.13, 2.0.13.12.0.13.2
yiisoft/yii2-dev
packagist
2.0.14, 2.0.14.1, 2.0.14.22.0.15
yiisoft/yii2-dev
packagist
2.0.0, 2.0.0-alpha, 2.0.0-beta, 2.0.0-rc (+14 more)2.0.12.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2018-7269?
Yii SQL injection vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2018-7269?
CVE-2018-7269 affects yiisoft/yii2-dev. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-7269 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-hhg2-g6h6-c266

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies