9.8crit

CVE-2018-7269

Yii SQL injection vulnerability

Also known as GHSA-hhg2-g6h6-c266

Published 8 y ago · modified 4 mo ago · JSON

CVSS
9.8
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.9%
percentile 80%
Public exploits
0
none known

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.

Exploit prediction (EPSS)

1.90% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD2.07.5AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub3.09.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

EcosystemPackageAffectedFixed in
packagistyiisoft/yii2-dev
<2.0.12.1
>=2.0.13, <2.0.13.2
>=2.0.14, <2.0.15
2.0.12.1
2.0.13.2
2.0.15

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

  • yiiframework.com /news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/ · x_refsource_CONFIRM, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2018-7269 · advisory
  • github.com /FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-7269.yaml · web
  • github.com /yiisoft/yii2 · package
  • yiiframework.com /news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.