CVE-2026-18663389-ds-base: 389-ds-base: pre-authentication double-free in…
A flaw was found in 389-ds-base. The get_ldapmessage_controls_ext() function frees the parsed controls array on the Session Tracking critical-control rejection path without clearing the SLAPI_REQCONTROLS pblock slot. Operation teardown then frees the same pointer again, causing a double-free. An unauthenticated remote attacker can trigger this with a single BIND request carrying a critical Session Tracking control, resulting in heap corruption and potential denial of service.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | 389-ds-base | Fix pending | UBUNTU-CVE-2026-18663 | |
| Ubuntu 26.04 | 389-ds-base | Under investigation | UBUNTU-CVE-2026-18663 | |
| Ubuntu 24.04 | 389-ds-base | Under investigation | UBUNTU-CVE-2026-18663 | |
| Ubuntu 22.04 | 389-ds-base | Under investigation | UBUNTU-CVE-2026-18663 | |
| Ubuntu 20.04 | 389-ds-base | Fix pending | UBUNTU-CVE-2026-18663 | |
| Ubuntu 18.04 | 389-ds-base | Fix pending | UBUNTU-CVE-2026-18663 | |
| Ubuntu 16.04 | 389-ds-base | Fix pending | UBUNTU-CVE-2026-18663 | |
| Debian 13 | 389-ds-base | Fix pending | DEBIAN-CVE-2026-18663 | |
| Debian 12 | 389-ds-base | Fix pending | DEBIAN-CVE-2026-18663 | |
| Red Hat Enterprise Linux 10 | 389-ds-base | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-bdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | 389-ds-base-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3-lib389 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-legacy-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-389-ds | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 7 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 7 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 6 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | 389-ds-base-libs | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Directory Server 11
- Red Hat Directory Server 12
- Red Hat Directory Server 13
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: On builds that include upstream Issue 7389 (committed 2026-04-09, present in 389-ds-base-3.2 branch), administrators can add the Session Tracking control OID (1.3.6.1.4.1.21008.108.63.1) to the ds-ignored-control-criticality configuration attribute. This causes the server to ignore the criticality flag on this control, preventing the vulnerable rejection path from being reached. Additionally, network-level restriction of access to the LDAP port (389/636) to trusted clients reduces exposure.
References
- https://access.redhat.com/security/cve/CVE-2026-18663
- https://bugzilla.redhat.com/show_bug.cgi?id=2510631
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.