CVE-2026-102731: Apache Directory LDAP API: Denial of service via excessive memory allocation in BER decode

Published Oct 2, 2026
·
Updated

Memory allocation with excessive size value vulnerability in Apache Directory LDAP API.

A malicious peer (or a MITM) can send a small BER-encoded response causing a large memory allocation before any data is received. This can lead to an OutOfMemoryError and denial of service.

The client JVM OOMs (OutOfMemoryError bypasses the DecoderException handlers) or pins the large allocation per connection while the attacker stalls.

A handful of connections exhausts any heap. The same bytes from an unauthenticated pre-bind client hit any embedding server that did not set MAXPDUSIZEATTR.

This issue affects Apache Directory LDAP API: from 1.2.0 before 1.2.9.

Users are recommended to upgrade to version 1.2.9, which fixes the issue.

Affected Software

1 affected component
Apache Directory LDAP API>=1.2.0<1.2.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Directory LDAP API to a version that resolves this vulnerability.

    Fixed in 1.2.9

Event History

Oct 2, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
DescriptionWeakness
Data Sourced
via NVD·10:17 AM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

LDAP API clients are exposed when they process responses from a malicious LDAP peer or a man-in-the-middle. Servers embedding the API are also exposed to unauthenticated pre-bind clients if MAX_PDU_SIZE_ATTR has not been set.

2

What does an attacker need to do to cause denial of service?

An attacker needs to send a small BER-encoded message containing an excessive size value. This can trigger a very large allocation before the corresponding data is received; stalling after allocation can pin memory per connection, and only a handful of connections may exhaust the heap.

3

Are exception handlers sufficient to prevent the client-side failure?

No. The affected client JVM can throw an OutOfMemoryError, which bypasses the DecoderException handlers described in the issue.

4

What mitigation is available if an immediate upgrade is not possible?

For embedding servers, set MAX_PDU_SIZE_ATTR to prevent unauthenticated pre-bind input from reaching this condition. The recommended remediation is upgrading to Apache Directory LDAP API version 1.2.9.

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