CVE-2026-16560

389-ds-base: 389-ds-base: heap-buffer-overflow in rdn_av_swap on quoted multivalued rdn

Published Jul 22, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A heap-buffer-overflow flaw was found in Directory Server (389-ds-base). When a DN contains a legacy-quoted value, the server won't close the heap allocation allowing another call to refer to the same memory pointer causing a denial of service or an arbitrary memory write operation.

Analysis

AI-generated

Technical impact

A heap-buffer-overflow in 389-ds-base occurs when a distinguished name containing a legacy-quoted value is parsed. The parser fails to close the heap allocation, leaving a pointer that can be reused, which allows an attacker to trigger a denial of service or, if conditions permit, cause an arbitrary memory write. This flaw reflects a failure to safely handle quoted attributes.

Affected Systems

This flaw affects all Red Hat Directory Server releases 11 through 13 as well as the Red Hat Enterprise Linux families 6 through 10, because every version that ships the quoted‑RDN parsing logic in dn.c is vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate risk, while the EPSS score of < 1% points to a low exploitation probability; the vulnerability is not listed in the CISA KEV catalog. Attacks would require an attacker to supply a specially crafted DN with a legacy‑quoted value, so the likely vector is network‑based client communication to the Directory Server. Denial of service is more reliably observed when heap debugging is enabled, yet the underlying memory corruption could be exploited even when debugging is not active.

Remediation

Vendor Workaround

Denial of service is more reliably observed when heap debugging is enabled (for example AddressSanitizer or MALLOC_CHECK_=3), or depending on heap layout and subsequent memory allocator activity. For this reason Red Hat rates availability impact as Low (A:L) rather than High. There is no configuration switch to disable DN normalization for client-supplied DNs. The vulnerable code path is present in all currently supported 389-ds-base versions that ship the quoted-RDN parsing logic in dn.c.


OpenCVE Recommended Actions

  • Apply the vendor‑supplied update that patches the 389‑ds‑base component in all affected Red Hat Directory Server and RHEL releases.
  • If an immediate upgrade is not possible, restrict Directory Server access to trusted hosts using firewall rules and monitor the service for crashes or restarts that may indicate an exploitation attempt.
  • Enable heap debugging by setting MALLOC_CHECK_=3 or running the server with AddressSanitizer; observe that denial of service occurs when a carefully crafted DN is processed, and use such observations to detect exploitation attempts.
  • Adopt the CNA workaround: enable heap debugging to more reliably observe denial of service; note that this does not mitigate the underlying buffer overflow but can help detect exploitation attempts.

Generated by OpenCVE AI on August 3, 2026 at 23:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A heap-buffer-overflow flaw was found in Directory Server (389-ds-base). When a DN contains a legacy-quoted value, the server won't close the heap allocation allowing another call to refer to the same memory pointer causing a denial of service or an arbitrary memory write operation.
Title 389-ds-base: 389-ds-base: heap-buffer-overflow in rdn_av_swap on quoted multivalued rdn
First Time appeared Redhat
Redhat directory Server
Redhat enterprise Linux
Weaknesses CWE-1220
CPEs cpe:/a:redhat:directory_server:11
cpe:/a:redhat:directory_server:12
cpe:/a:redhat:directory_server:13
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat directory Server
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-1220

    Insufficient Granularity of Access Control

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 7:24 PM
Reserved
Jul 22, 2026, 12:11 PM
Status
Awaiting Analysis
Published
Jul 22, 2026, 2:17 PM
Modified
Nov 5, 2026, 8:17 PM
Severity
Moderate
Public date
Jul 22, 2026, 12:00 PM