Bug 2055326 (CVE-2022-24407) - CVE-2022-24407 cyrus-sasl: failure to properly escape SQL input allows an attacker to execute arbitrary SQL commands
Summary: CVE-2022-24407 cyrus-sasl: failure to properly escape SQL input allows an att...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-24407
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2055841 2055842 2055843 2055844 2055845 2055846 2055847 2055848 2057311 2057312 2057334 2057447 2059596 2059600
Blocks: 2055327
TreeView+ depends on / blocked
 
Reported: 2022-02-16 17:32 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-07-06 15:31 UTC (History)
64 users (show)

Fixed In Version: cyrus-sasl 2.1.28
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2022-04-07 11:27:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:0683 0 None None None 2022-02-28 07:57:30 UTC
Red Hat Product Errata RHBA-2022:0691 0 None None None 2022-02-28 14:16:03 UTC
Red Hat Product Errata RHBA-2022:0692 0 None None None 2022-02-28 14:29:45 UTC
Red Hat Product Errata RHBA-2022:0693 0 None None None 2022-02-28 14:22:40 UTC
Red Hat Product Errata RHBA-2022:0694 0 None None None 2022-02-28 14:40:39 UTC
Red Hat Product Errata RHBA-2022:0695 0 None None None 2022-02-28 18:13:40 UTC
Red Hat Product Errata RHBA-2022:0696 0 None None None 2022-02-28 18:13:58 UTC
Red Hat Product Errata RHBA-2022:0697 0 None None None 2022-02-28 18:14:29 UTC
Red Hat Product Errata RHBA-2022:0698 0 None None None 2022-02-28 18:14:34 UTC
Red Hat Product Errata RHBA-2022:0700 0 None None None 2022-02-28 18:14:03 UTC
Red Hat Product Errata RHBA-2022:0702 0 None None None 2022-02-28 18:13:52 UTC
Red Hat Product Errata RHBA-2022:0704 0 None None None 2022-02-28 18:14:56 UTC
Red Hat Product Errata RHBA-2022:0709 0 None None None 2022-03-01 11:59:54 UTC
Red Hat Product Errata RHBA-2022:0710 0 None None None 2022-03-01 14:13:06 UTC
Red Hat Product Errata RHBA-2022:0711 0 None None None 2022-03-01 12:01:55 UTC
Red Hat Product Errata RHBA-2022:0719 0 None None None 2022-03-01 13:37:22 UTC
Red Hat Product Errata RHBA-2022:0720 0 None None None 2022-03-01 14:09:46 UTC
Red Hat Product Errata RHBA-2022:0724 0 None None None 2022-03-01 16:08:34 UTC
Red Hat Product Errata RHBA-2022:0725 0 None None None 2022-03-01 16:09:03 UTC
Red Hat Product Errata RHBA-2022:0726 0 None None None 2022-03-01 16:10:08 UTC
Red Hat Product Errata RHBA-2022:0729 0 None None None 2022-03-02 13:29:44 UTC
Red Hat Product Errata RHBA-2022:0736 0 None None None 2022-03-03 08:15:16 UTC
Red Hat Product Errata RHBA-2022:0738 0 None None None 2022-03-03 12:18:16 UTC
Red Hat Product Errata RHBA-2022:0739 0 None None None 2022-03-03 14:40:41 UTC
Red Hat Product Errata RHBA-2022:0745 0 None None None 2022-03-03 16:39:40 UTC
Red Hat Product Errata RHBA-2022:0746 0 None None None 2022-03-03 16:31:06 UTC
Red Hat Product Errata RHBA-2022:0750 0 None None None 2022-03-07 13:18:08 UTC
Red Hat Product Errata RHBA-2022:0752 0 None None None 2022-03-07 13:18:15 UTC
Red Hat Product Errata RHBA-2022:0753 0 None None None 2022-03-07 13:18:22 UTC
Red Hat Product Errata RHBA-2022:0755 0 None None None 2022-03-07 14:00:33 UTC
Red Hat Product Errata RHBA-2022:0756 0 None None None 2022-03-07 14:06:25 UTC
Red Hat Product Errata RHBA-2022:0757 0 None None None 2022-03-07 13:51:19 UTC
Red Hat Product Errata RHBA-2022:0758 0 None None None 2022-03-07 14:37:05 UTC
Red Hat Product Errata RHBA-2022:0765 0 None None None 2022-03-08 12:36:24 UTC
Red Hat Product Errata RHBA-2022:0768 0 None None None 2022-03-08 13:24:47 UTC
Red Hat Product Errata RHBA-2022:0791 0 None None None 2022-03-08 23:50:36 UTC
Red Hat Product Errata RHBA-2022:0792 0 None None None 2022-03-08 23:06:24 UTC
Red Hat Product Errata RHBA-2022:0801 0 None None None 2022-03-09 09:06:49 UTC
Red Hat Product Errata RHBA-2022:0804 0 None None None 2022-03-09 14:36:31 UTC
Red Hat Product Errata RHBA-2022:0805 0 None None None 2022-03-09 15:51:00 UTC
Red Hat Product Errata RHBA-2022:0806 0 None None None 2022-03-09 14:47:15 UTC
Red Hat Product Errata RHBA-2022:0807 0 None None None 2022-03-09 16:33:45 UTC
Red Hat Product Errata RHBA-2022:0808 0 None None None 2022-03-09 17:16:58 UTC
Red Hat Product Errata RHBA-2022:0814 0 None None None 2022-03-10 13:37:09 UTC
Red Hat Product Errata RHBA-2022:0834 0 None None None 2022-03-10 16:16:23 UTC
Red Hat Product Errata RHBA-2022:0931 0 None None None 2022-03-15 18:09:01 UTC
Red Hat Product Errata RHBA-2022:0941 0 None None None 2022-03-16 11:05:57 UTC
Red Hat Product Errata RHBA-2022:0955 0 None None None 2022-03-17 09:33:14 UTC
Red Hat Product Errata RHBA-2022:0961 0 None None None 2022-03-17 18:55:32 UTC
Red Hat Product Errata RHBA-2022:0962 0 None None None 2022-03-17 19:40:36 UTC
Red Hat Product Errata RHBA-2022:0963 0 None None None 2022-03-17 20:11:34 UTC
Red Hat Product Errata RHBA-2022:0966 0 None None None 2022-03-21 13:36:11 UTC
Red Hat Product Errata RHBA-2022:1008 0 None None None 2022-03-22 11:43:32 UTC
Red Hat Product Errata RHBA-2022:1009 0 None None None 2022-03-22 12:15:04 UTC
Red Hat Product Errata RHBA-2022:1184 0 None None None 2022-04-05 05:02:24 UTC
Red Hat Product Errata RHSA-2022:0658 0 None None None 2022-02-23 20:01:32 UTC
Red Hat Product Errata RHSA-2022:0666 0 None None None 2022-02-24 10:22:11 UTC
Red Hat Product Errata RHSA-2022:0668 0 None None None 2022-02-24 10:20:16 UTC
Red Hat Product Errata RHSA-2022:0730 0 None None None 2022-03-02 14:17:04 UTC
Red Hat Product Errata RHSA-2022:0731 0 None None None 2022-03-02 14:26:46 UTC
Red Hat Product Errata RHSA-2022:0780 0 None None None 2022-03-08 16:11:32 UTC
Red Hat Product Errata RHSA-2022:0841 0 None None None 2022-03-14 09:23:20 UTC
Red Hat Product Errata RHSA-2022:1029 0 None None None 2022-03-23 08:23:05 UTC
Red Hat Product Errata RHSA-2022:1263 0 None None None 2022-04-07 09:03:32 UTC

Description Guilherme de Almeida Suckevicz 2022-02-16 17:32:37 UTC
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 sql_auxprop_store, plugins/sql.c, and in particular the 5th parameter of sql_create_statement 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.

Comment 4 Simo Sorce 2022-02-21 18:43:45 UTC
Marian,
I think it is important to state that an "authenticated remote attacker" is needed, as this flaw occurs only on password change and I believe you need to be authenticated to perform it.

Comment 9 Sandipan Roy 2022-02-23 08:45:17 UTC
Created cyrus-sasl tracking bugs for this issue:

Affects: fedora-all [bug 2057334]

Comment 10 errata-xmlrpc 2022-02-23 20:01:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0658 https://access.redhat.com/errata/RHSA-2022:0658

Comment 11 errata-xmlrpc 2022-02-24 10:20:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support

Via RHSA-2022:0668 https://access.redhat.com/errata/RHSA-2022:0668

Comment 12 errata-xmlrpc 2022-02-24 10:22:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2022:0666 https://access.redhat.com/errata/RHSA-2022:0666

Comment 15 errata-xmlrpc 2022-03-02 14:16:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

Via RHSA-2022:0730 https://access.redhat.com/errata/RHSA-2022:0730

Comment 16 errata-xmlrpc 2022-03-02 14:26:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

Via RHSA-2022:0731 https://access.redhat.com/errata/RHSA-2022:0731

Comment 17 errata-xmlrpc 2022-03-08 16:11:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6 Extended Lifecycle Support

Via RHSA-2022:0780 https://access.redhat.com/errata/RHSA-2022:0780

Comment 18 errata-xmlrpc 2022-03-14 09:23:16 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization 4 for Red Hat Enterprise Linux 8

Via RHSA-2022:0841 https://access.redhat.com/errata/RHSA-2022:0841

Comment 19 errata-xmlrpc 2022-03-23 08:23:00 UTC
This issue has been addressed in the following products:

  RHINT Camel-K 1.6.4

Via RHSA-2022:1029 https://access.redhat.com/errata/RHSA-2022:1029

Comment 20 errata-xmlrpc 2022-04-07 09:03:27 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization 4 for Red Hat Enterprise Linux 7

Via RHSA-2022:1263 https://access.redhat.com/errata/RHSA-2022:1263

Comment 21 Product Security DevOps Team 2022-04-07 11:27:31 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-24407


Note You need to log in before you can comment on or make changes to this bug.