CVE-2022-24407: SQL Injection

Published Feb 16, 2022
·
Updated

A flaw was found in the SQL plugin shipped with Cyrus SASL. The vulnerability occurs due to failure to properly escape SQL input and leads to an improper input validation vulnerability. This flaw allows an attacker to execute arbitrary SQL commands and the ability to change the passwords for other accounts allowing escalation of privileges.

Other sources

A SQL injection attack has been discovered in the SQL plugin shipped with Cyrus SASL 2.1.17 through 2.1.27 before 2.1.28. Due to failure to properly escape SQL input, an attacker can execute arbitrary SQL commands. This can allow, among other things, the ability to change the passwords for other accounts allowing escalation of privileges. The issue is in sqlauxpropstore, plugins/sql.c, and in particular the 5th parameter of sqlcreatestatement for the insert/update SQL command. Currently it takes the value of the property as is, without quoting. If one uses a password containing a closing ' and continues with valid SQL syntax, then exploitation is possible.

Red Hat

In Cyrus SASL 2.1.17 through 2.1.27 before 2.1.28, plugins/sql.c does not escape the password for a SQL INSERT or UPDATE statement.

Affected Software

21 affected componentsFixes available
redhat/cyrus-sasl<0:2.1.23-16.el6_10
0:2.1.23-16.el6_10
redhat/cyrus-sasl<0:2.1.26-24.el7_9
0:2.1.26-24.el7_9
redhat/cyrus-sasl<0:2.1.27-6.el8_5
0:2.1.27-6.el8_5
redhat/cyrus-sasl<0:2.1.27-2.el8_1
0:2.1.27-2.el8_1
redhat/cyrus-sasl<0:2.1.27-2.el8_2
0:2.1.27-2.el8_2
redhat/cyrus-sasl<0:2.1.27-6.el8_4
0:2.1.27-6.el8_4
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
debian/cyrus-sasl2
2.1.27+dfsg-1+deb10u22.1.27+dfsg-2.1+deb11u12.1.28+dfsg-102.1.28+dfsg1-3
redhat/cyrus-sasl<2.1.28
2.1.28
cyrusimap Cyrus-sasl>=2.1.17<=2.1.27
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp ONTAP Select Deploy administration utility
Oracle Communications Cloud Native Core Console=22.2.0
Oracle Communications Cloud Native Core Network Function Cloud Native Environment=22.2.0
Oracle Communications Cloud Native Core Security Edge Protection Proxy=22.1.1

Event History

Feb 16, 2022
Data Sourced
via Red Hat·05:32 PM
DescriptionSeverityAffected Software
Feb 22, 2022
CVE Published
06:00 PM
Feb 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
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-2022-24407?

The severity of CVE-2022-24407 is high (8.8).

2

What is the affected software of CVE-2022-24407?

The affected software of CVE-2022-24407 includes Cyrus SASL version 2.1.17 through 2.1.27.

3

How does CVE-2022-24407 occur?

CVE-2022-24407 occurs due to failure to properly escape SQL input in the SQL plugin shipped with Cyrus SASL.

4

What is the potential impact of CVE-2022-24407?

The potential impact of CVE-2022-24407 is the execution of arbitrary SQL commands and the ability to change passwords for other accounts.

5

How can I fix CVE-2022-24407?

To fix CVE-2022-24407, update to Cyrus SASL version 2.1.28.

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