Heap Buffer Overflow in 389 Directory Server SASL I/O Layer
A heap buffer overflow vulnerability in the SASL I/O layer of 389-ds-base allows a remote authenticated attacker to trigger an unsigned subtraction underflow and cause memory corruption.
CVE search metadata
CVE search record: CVE-2026-11774. Severity: high. CVSS: 7.6. EPSS: 0.80%. KEV: no. Product: 389-ds-base. Brief: Heap Buffer Overflow in 389 Directory Server SASL I/O Layer. Brief link: https://feed.craftedsignal.io/briefs/2026-09-389-ds-heap-overflow/
CVE search record: CVE-2026-18355. Severity: high. CVSS: 7.5. KEV: no. Product: 389-ds-base. Brief: Heap Buffer Overflow in 389 Directory Server SASL I/O Layer. Brief link: https://feed.craftedsignal.io/briefs/2026-09-389-ds-heap-overflow/
A heap buffer overflow vulnerability exists in the SASL I/O layer of 389 Directory Server (389-ds-base), specifically within the sasl_io_read_packet() function. The flaw occurs because the wrapped-record length read from the wire is insufficiently validated. When an attacker provides a small wire length (0, 1, or 2) during a SASL bind with integrity protection (SSF > 0), the application performs an unsigned subtraction underflow when calculating the buffer count. This logic error instructs the system to read approximately 4 GiB of data into a 1024-byte heap-allocated buffer.
This vulnerability allows a remote authenticated attacker to trigger memory corruption, leading to a denial of service (DoS) or potentially remote code execution (RCE). This issue is distinct from the previously reported CVE-2026-11774, as the earlier mitigation only addressed upper-bound overflows and failed to account for these specific underflow scenarios.
Impact
Successful exploitation of this flaw can result in a crash of the 389 Directory Server process, causing service disruption. Furthermore, the ability to trigger a heap overflow with attacker-controlled content provides a pathway for remote code execution, which could lead to full system compromise of servers running 389-ds-base.
Recommendation
- Review security patches provided by the 389 Directory Server project and apply updates to 389-ds-base immediately to address CVE-2026-18355.
- Monitor service logs for unexpected 389 Directory Server process crashes or restarts, which may indicate attempted exploitation.
- Restrict access to Directory Server management interfaces to trusted administrative segments to reduce the risk of exploitation by unauthorized or partially authenticated entities.
Immediate actions
Upgrade 389-ds-base to the patched version once released by the vendor.
Mitigations
Identify servers running 389-ds-base and schedule maintenance windows for patching.
CVE-2026-18355