Summary
A memory leak was found in 389 Directory Server (389-ds-base) in the LDAP filter parser (get_substring_filter()). When an LDAP SearchRequest contains a SubstringFilter with a duplicate initial or final component, or a component with an unrecognized tag, the server rejects the request but fails to release the associated memory.
Per the CVSS vector (7.5, high), the attack is network-based, low complexity, and requires no authentication or user interaction. An attacker who can reach the LDAP service can repeatedly send such malformed requests to exhaust server memory.
The result is denial of service (loss of availability); confidentiality and integrity are not directly affected. The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations running Red Hat Directory Server 11.x/12.x or 389-ds-base on RHEL 8, 9 and 10 (including EUS, E4S and AUS streams), especially where the LDAP service is reachable from untrusted networks.
What to do
- Apply the fixes from Red Hat security advisories (RHSA-2026:105331 through RHSA-2026:105340) for your release; fixed package versions are not listed in the record, so check the vendor's official advisory.
- Workaround: restrict anonymous LDAP access by setting nsslapd-allow-anonymous-access to "off" or "rootdse", preventing unauthenticated clients from reaching the vulnerable code path.
- Before applying this change, evaluate the impact on legitimate clients and applications relying on anonymous binds or searches.
- Check exposure: inventory systems running 389-ds-base and firewall LDAP/LDAPS ports so only trusted networks can reach them.
- Monitor ns-slapd memory usage to detect exhaustion attempts early.
Vendor workaround
Restricting anonymous LDAP access (for example, setting nsslapd-allow-anonymous-access to "off" or "rootdse") prevents unauthenticated clients from reaching the vulnerable code path. This is a configuration change that affects any legitimate clients relying on anonymous binds or searches, and its impact should be evaluated before being applied in a given environment.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-401 Missing Release of Memory after Effective Lifetime
References
- access.redhat.com/errata/RHSA-2026:105331 vendor advisory
- access.redhat.com/errata/RHSA-2026:105332 vendor advisory
- access.redhat.com/errata/RHSA-2026:105333 vendor advisory
- access.redhat.com/errata/RHSA-2026:105334 vendor advisory
- access.redhat.com/errata/RHSA-2026:105335 vendor advisory
- access.redhat.com/errata/RHSA-2026:105336 vendor advisory
- access.redhat.com/errata/RHSA-2026:105337 vendor advisory
- access.redhat.com/errata/RHSA-2026:105338 vendor advisory
- access.redhat.com/errata/RHSA-2026:105339 vendor advisory
- access.redhat.com/errata/RHSA-2026:105340 vendor advisory
- access.redhat.com/errata/RHSA-2026:105341 vendor advisory
- access.redhat.com/errata/RHSA-2026:105343 vendor advisory
- access.redhat.com/errata/RHSA-2026:105344 vendor advisory
- access.redhat.com/errata/RHSA-2026:105345 vendor advisory
- access.redhat.com/errata/RHSA-2026:105346 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.