Bug 1559802 (CVE-2018-1089) - CVE-2018-1089 389-ds-base: ns-slapd crash via large filter value in ldapsearch
Summary: CVE-2018-1089 389-ds-base: ns-slapd crash via large filter value in ldapsearch
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-1089
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: impact=important,public=20180507:1500...
Depends On: 1559818 1559819 1562151 1562152 1575671 1575672
Blocks: 1559605
TreeView+ depends on / blocked
 
Reported: 2018-03-23 10:05 UTC by Adam Mariš
Modified: 2019-06-08 22:46 UTC (History)
8 users (show)

Fixed In Version: 389-ds-base 1.4.0.9, 389-ds-base 1.3.8.1, 389-ds-base 1.3.6.15
Doc Type: If docs needed, set a value
Doc Text:
It was found that 389-ds-base did not properly handle long search filters with characters needing escapes, possibly leading to buffer overflows. A remote, unauthenticated attacker could potentially use this flaw to make ns-slapd crash via a specially crafted LDAP request, thus resulting in denial of service.
Clone Of:
Environment:
Last Closed: 2018-10-18 18:07:12 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1364 None None None 2018-05-09 14:27:36 UTC
Red Hat Product Errata RHSA-2018:1380 None None None 2018-05-14 16:09:52 UTC

Description Adam Mariš 2018-03-23 10:05:11 UTC
It is possible to crash ns-slapd (and ipa-dnskeysyncd afterwards) with crafted ldapsearch query with very long filter value both as anonymous or authenticated user. The crash can be similarly triggered with a query via the FreeIPA API as an authenticated user.

Comment 1 Adam Mariš 2018-03-23 10:05:16 UTC
Acknowledgments:

Name: Greg Kubok

Comment 23 Cedric Buissart 🐶 2018-05-07 15:06:45 UTC
Created 389-ds-base tracking bugs for this issue:

Affects: fedora-all [bug 1575671]

Comment 25 errata-xmlrpc 2018-05-09 14:27:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2018:1364 https://access.redhat.com/errata/RHSA-2018:1364

Comment 26 errata-xmlrpc 2018-05-14 16:09:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:1380 https://access.redhat.com/errata/RHSA-2018:1380

Comment 27 Cedric Buissart 🐶 2018-06-05 13:12:01 UTC
Upstream fix: 
https://pagure.io/389-ds-base/c/9d8d096b154e


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