CVE-2026-15722: 389-ds-base: 389-ds-base: pre-authentication stack buffer overflow in get_ruvelement_from_berval() via unbounded replica id parsing

Published Jul 14, 2026
·
Updated

A flaw was found in 389 Directory Server (389-ds-base). The getruvelementfromberval() function in ldap/servers/plugins/replication/repl5ruv.c copies digit characters from a network-supplied RUV berval into a fixed 16-byte stack buffer (ridbuff[RIDSTRSIZE]) without bounds checking the loop counter. A remote unauthenticated attacker can crash the ns-slapd process by sending a crafted StartNSDS50ReplicationRequest LDAP extended operation (OID 2.16.840.1.113730.3.5.12) containing more than 16 consecutive digit characters in the replica ID field. The overflow occurs during payload decoding in decodestartreplextop(), before the replicaisupdatedn() authorization check runs, making it exploitable without credentials on default configurations where anonymous access is enabled. On production builds with stack protectors, the impact is limited to denial of service (process abort). The vulnerable code path is: decodestartreplextop() -> decoderuv() -> ruvinitfrombervals() -> getruvelementfromberval().

Other sources

A stack buffer overflow flaw was found in 389 Directory Server (389-ds-base). The getruvelementfromberval() function in repl5ruv.c copies digit characters from a network-supplied RUV berval into a fixed 16-byte stack buffer without bounds checking. A remote unauthenticated attacker can crash the LDAP server by sending a crafted StartNSDS50ReplicationRequest extended operation containing a replica ID field with more than 16 digit characters. The overflow occurs during payload decoding, before any authorization check. Stack protectors limit impact to denial of service.

MITRE

Affected Software

8 affected components
389 Directory Server 389-ds-base
redhat Directory Server=11.0
redhat Directory Server=12.0
redhat 389 Directory Server
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Restrict/disable anonymous (unauthenticated) LDAP access so that exploitation of the StartNSDS50ReplicationRequest extended operation cannot be performed on default configurations where anonymous access is enabled.

Event History

Jul 14, 2026
Data Sourced
via Red Hat·12:56 PM
DescriptionSeverityAffected Software
Jul 31, 2026
CVE Published
via MITRE·09:18 AM
Data Sourced
via MITRE·09:18 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-15722?

CVE-2026-15722 has a severity rating of 7.5, categorized as high.

2

What type of vulnerability is CVE-2026-15722?

CVE-2026-15722 is a stack buffer overflow vulnerability.

3

How can I fix CVE-2026-15722?

To mitigate CVE-2026-15722, upgrade to the latest version of 389-ds-base that contains the security patch.

4

What systems are affected by CVE-2026-15722?

CVE-2026-15722 affects the 389 Directory Server (389-ds-base) versions prior to the patched release.

5

What causes CVE-2026-15722?

CVE-2026-15722 is caused by unbounded parsing of a network-supplied RUV berval in the get_ruvelement_from_berval() function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203