CVE-2018-7269: SQL Injection

Published Mar 20, 2018
·
Updated

Potential SQL injection in methods yii\db\ActiveRecord::findOne() and ::findAll()

Other sources

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.

GitHub

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.

Affected Software

6 affected componentsFixes available
composer/yiisoft/yii2-dev<2.0.12.1, >=2.0.13, <2.0.13.2, >=2.0.14, <2.0.15
composer/yiisoft/yii2<2.0.12.1, >=2.0.13, <2.0.13.2, >=2.0.14, <2.0.15
composer/yiisoft/yii2-dev>=2.0.14<2.0.15
2.0.15
composer/yiisoft/yii2-dev>=2.0.13<2.0.13.2
2.0.13.2
composer/yiisoft/yii2-dev<2.0.12.1
2.0.12.1
Yiiframework Yii>=2.0.0<2.0.15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/yiisoft/yii2-dev to a version that resolves this vulnerability.

    Fixed in 2.0.15
  2. Upgrade

    Upgrade composer/yiisoft/yii2-dev to a version that resolves this vulnerability.

    Fixed in 2.0.13.2
  3. Upgrade

    Upgrade composer/yiisoft/yii2-dev to a version that resolves this vulnerability.

    Fixed in 2.0.12.1

Event History

Mar 20, 2018
Advisory Published
10:14 AM
Mar 21, 2018
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via NVD·06:29 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2018-7269?

CVE-2018-7269 is classified as a medium severity vulnerability due to its potential for SQL injection attacks.

2

How do I fix CVE-2018-7269?

To fix CVE-2018-7269, upgrade to Yii version 2.0.15 or later.

3

What versions of Yii are affected by CVE-2018-7269?

CVE-2018-7269 affects Yii versions prior to 2.0.15, specifically 2.0.0 through 2.0.14.

4

Can CVE-2018-7269 be exploited remotely?

Yes, CVE-2018-7269 can be exploited remotely through specific calls to findOne() or findAll() methods.

5

What types of attacks can CVE-2018-7269 facilitate?

CVE-2018-7269 can facilitate SQL injection attacks, potentially leading to unauthorized database access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203