{"id":"UBUNTU-CVE-2022-29155","details":"In OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2, a SQL injection vulnerability exists in the experimental back-sql backend to slapd, via a SQL statement within an LDAP query. This can occur during an LDAP search operation when the search filter is processed, due to a lack of proper escaping.","modified":"2026-04-22T13:21:50.280111Z","published":"2022-05-04T20:15:00Z","related":["USN-5424-1","USN-5424-2"],"upstream":["CVE-2022-29155"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-29155"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5424-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5424-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-29155"}],"affected":[{"package":{"name":"openldap","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/openldap@2.4.31-1+nmu2ubuntu8.5+esm5?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.31-1+nmu2ubuntu8.5+esm5"}]}],"versions":["2.4.31-1+nmu2ubuntu3","2.4.31-1+nmu2ubuntu4","2.4.31-1+nmu2ubuntu5","2.4.31-1+nmu2ubuntu8","2.4.31-1+nmu2ubuntu8.1","2.4.31-1+nmu2ubuntu8.2","2.4.31-1+nmu2ubuntu8.3","2.4.31-1+nmu2ubuntu8.4","2.4.31-1+nmu2ubuntu8.5","2.4.31-1+nmu2ubuntu8.5+esm1","2.4.31-1+nmu2ubuntu8.5+esm2","2.4.31-1+nmu2ubuntu8.5+esm3","2.4.31-1+nmu2ubuntu8.5+esm4"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.31-1+nmu2ubuntu8.5+esm5","binary_name":"ldap-utils"},{"binary_version":"2.4.31-1+nmu2ubuntu8.5+esm5","binary_name":"libldap-2.4-2"},{"binary_version":"2.4.31-1+nmu2ubuntu8.5+esm5","binary_name":"slapd"},{"binary_version":"2.4.31-1+nmu2ubuntu8.5+esm5","binary_name":"slapd-smbk5pwd"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29155.json"}},{"package":{"name":"openldap","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/openldap@2.4.42+dfsg-2ubuntu3.13+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.42+dfsg-2ubuntu3.13+esm1"}]}],"versions":["2.4.41+dfsg-1ubuntu2","2.4.41+dfsg-1ubuntu3","2.4.42+dfsg-2ubuntu1","2.4.42+dfsg-2ubuntu3","2.4.42+dfsg-2ubuntu3.1","2.4.42+dfsg-2ubuntu3.2","2.4.42+dfsg-2ubuntu3.3","2.4.42+dfsg-2ubuntu3.4","2.4.42+dfsg-2ubuntu3.5","2.4.42+dfsg-2ubuntu3.6","2.4.42+dfsg-2ubuntu3.7","2.4.42+dfsg-2ubuntu3.8","2.4.42+dfsg-2ubuntu3.9","2.4.42+dfsg-2ubuntu3.10","2.4.42+dfsg-2ubuntu3.11","2.4.42+dfsg-2ubuntu3.12","2.4.42+dfsg-2ubuntu3.13"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.42+dfsg-2ubuntu3.13+esm1","binary_name":"ldap-utils"},{"binary_version":"2.4.42+dfsg-2ubuntu3.13+esm1","binary_name":"libldap-2.4-2"},{"binary_version":"2.4.42+dfsg-2ubuntu3.13+esm1","binary_name":"slapd"},{"binary_version":"2.4.42+dfsg-2ubuntu3.13+esm1","binary_name":"slapd-smbk5pwd"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29155.json"}},{"package":{"name":"openldap","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/openldap@2.4.45+dfsg-1ubuntu1.11?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.45+dfsg-1ubuntu1.11"}]}],"versions":["2.4.45+dfsg-1ubuntu1","2.4.45+dfsg-1ubuntu1.1","2.4.45+dfsg-1ubuntu1.2","2.4.45+dfsg-1ubuntu1.3","2.4.45+dfsg-1ubuntu1.4","2.4.45+dfsg-1ubuntu1.5","2.4.45+dfsg-1ubuntu1.6","2.4.45+dfsg-1ubuntu1.7","2.4.45+dfsg-1ubuntu1.8","2.4.45+dfsg-1ubuntu1.9","2.4.45+dfsg-1ubuntu1.10"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.45+dfsg-1ubuntu1.11","binary_name":"ldap-utils"},{"binary_version":"2.4.45+dfsg-1ubuntu1.11","binary_name":"libldap-2.4-2"},{"binary_version":"2.4.45+dfsg-1ubuntu1.11","binary_name":"libldap-common"},{"binary_version":"2.4.45+dfsg-1ubuntu1.11","binary_name":"slapd"},{"binary_version":"2.4.45+dfsg-1ubuntu1.11","binary_name":"slapd-smbk5pwd"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29155.json"}},{"package":{"name":"openldap","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/openldap@2.4.49+dfsg-2ubuntu1.9?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.49+dfsg-2ubuntu1.9"}]}],"versions":["2.4.48+dfsg-1ubuntu1","2.4.48+dfsg-1ubuntu2","2.4.48+dfsg-1ubuntu3","2.4.48+dfsg-1ubuntu4","2.4.49+dfsg-1ubuntu1","2.4.49+dfsg-2ubuntu1","2.4.49+dfsg-2ubuntu1.2","2.4.49+dfsg-2ubuntu1.3","2.4.49+dfsg-2ubuntu1.4","2.4.49+dfsg-2ubuntu1.5","2.4.49+dfsg-2ubuntu1.6","2.4.49+dfsg-2ubuntu1.7","2.4.49+dfsg-2ubuntu1.8"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"ldap-utils"},{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"libldap-2.4-2"},{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"libldap-common"},{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"slapd"},{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"slapd-contrib"},{"binary_version":"2.4.49+dfsg-2ubuntu1.9","binary_name":"slapd-smbk5pwd"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29155.json"}},{"package":{"name":"openldap","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/openldap@2.5.11+dfsg-1~exp1ubuntu3.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.11+dfsg-1~exp1ubuntu3.1"}]}],"versions":["2.5.6+dfsg-1~exp1ubuntu1","2.5.11+dfsg-1~exp1ubuntu1","2.5.11+dfsg-1~exp1ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"ldap-utils"},{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"libldap-2.5-0"},{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"libldap-common"},{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"slapd"},{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"slapd-contrib"},{"binary_version":"2.5.11+dfsg-1~exp1ubuntu3.1","binary_name":"slapd-smbk5pwd"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29155.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}