GHSA-hhg2-g6h6-c266

Suggest an improvement
Source
https://github.com/advisories/GHSA-hhg2-g6h6-c266
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-hhg2-g6h6-c266/GHSA-hhg2-g6h6-c266.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hhg2-g6h6-c266
Aliases
Published
2022-05-24T16:59:28Z
Modified
2024-04-24T18:57:22.449099Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Yii SQL injection vulnerability
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-89"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-24T18:41:52Z"
}
References

Affected packages

Packagist / yiisoft/yii2-dev

Package

Name
yiisoft/yii2-dev
Purl
pkg:composer/yiisoft/yii2-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.12.1

Affected versions

2.*

2.0.0-alpha
2.0.0-beta
2.0.0-rc
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.9
2.0.10
2.0.11
2.0.11.1
2.0.11.2
2.0.12

Packagist / yiisoft/yii2-dev

Package

Name
yiisoft/yii2-dev
Purl
pkg:composer/yiisoft/yii2-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.13
Fixed
2.0.13.2

Affected versions

2.*

2.0.13
2.0.13.1

Packagist / yiisoft/yii2-dev

Package

Name
yiisoft/yii2-dev
Purl
pkg:composer/yiisoft/yii2-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.14
Fixed
2.0.15

Affected versions

2.*

2.0.14
2.0.14.1
2.0.14.2