CVE-2026-14940
published 2026-07-07CVE-2026-14940: A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base). When normalizing a Distinguished Name (DN) that contains a legacy-quoted value…
PriorityP432medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
0.29%
21.3th percentile
A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base). When
normalizing a Distinguished Name (DN) that contains a legacy-quoted value encoding a
multivalued nested Relative Distinguished Name (RDN), the server can write past the
end of a heap allocation while sorting RDN attribute-value pairs. An unauthenticated
remote attacker can trigger this condition by sending an LDAP operation whose DN
reaches the DN normalization routine, such as a search with a crafted base DN. This
can corrupt heap memory and may cause denial of service.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| 389-ds_1.4 | 389-ds-base | — | — |
| port389 | 389-ds-base | — | — |
| redhat-ds_11 | 389-ds-base | — | — |
| redhat-ds_12 | 389-ds-base | — | — |
| redhat | directory_server | — | — |
| redhat | directory_server | — | — |
| redhat | directory_server | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base).
ghsa_unreviewed·2026-07-07
CVE-2026-14940 [MEDIUM] CWE-122 A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base).
A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base). When
normalizing a Distinguished Name (DN) that contains a legacy-quoted value encoding a
multivalued nested Relative Distinguished Name (RDN), the server can write past the
end of a heap allocation while sorting RDN attribute-value pairs. An unauthenticated
remote attacker can trigger this condition by sending an LDAP operation whose DN
reaches the DN normalization routine, such as a search with a crafted base DN. This
can corrupt heap memory and may cause denial of service.
Red Hat
389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
vendor_redhat·2026-07-07·CVSS 5.3
CVE-2026-14940 [MEDIUM] CWE-122 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
A heap-buffer-overflow flaw was found in 389 Directory Server (389-ds-base). When
normalizing a Distinguished Name (DN) that contains a legacy-quoted value encoding a
multivalued nested Relative Distinguished Name (RDN), the server can write past the
end of a heap allocation while sorting RDN attribute-value pairs. An unauthenticated
remote attacker can trigger this condition by sending an LDAP operation whose DN
reaches the DN normalization routine, such as a search with a crafted base DN. This
can corrupt heap memory and may cause denial of service.
Statement: Red Hat rates this issue as Moderate impact. In 389-ds-base, DN normalization of a
crafted legacy-quoted multivalued RDN can corrupt he
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
bugzilla·2026-07-07·CVSS 5.3
CVE-2026-14940 [MEDIUM] CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
Valid heap-buffer-overflow in slapi_dn_normalize_ext() -> sort_rdn_avs() ->
rdn_av_swap() (ldap/servers/slapd/dn.c). Triggered when a DN contains a legacy-quoted
value encoding a multivalued nested RDN. On closing quote, nested attribute-value
tracking is not finalized; a subsequent separator can leave stale pointers that
produce overlapping berval entries. In-place sorting then writes past the heap
allocation in rdn_av_swap().
Reachable pre-auth via any LDAP operation whose DN is normalized (search base DN
confirmed). Reproduced on RHEL 9.8 (389-ds-base-2.8.0-7.el9_8) with reporter PoC.
Production behavior (no ASAN/MALLOC_CHECK_): malformed DN often returns err=34
(Invalid DN synt
Bugzilla
CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN [fedora-all]
bugzilla·2026-07-07·CVSS 5.3
CVE-2026-14940 [MEDIUM] CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN [fedora-all]
CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Valid heap-buffer-overflow in slapi_dn_normalize_ext() -> sort_rdn_avs() ->
rdn_av_swap() (ldap/servers/slapd/dn.c). Triggered when a DN contains a legacy-quoted
value encoding a multivalued nested RDN. On closing quote, nested attribute-value
tracking is not finalized; a subsequent separator can leave stale pointers that
produce overlapping berval entries. In-place sorting then writes past the heap
allocation in rdn_av_swap().
Reachable pre-auth v
2026-07-07
Published