Skip to content
OpenAdvisories
High · 7.5 CVE-2026-102731 EUVD-2026-91333GHSA-h24g-pjpf-8f2m

Apache Directory LDAP API: Denial of service via excessive memory allocation in BER decode

Published Oct 2, 2026 · Updated Oct 5, 2026 · Assigned by apache

Description

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 MAX_PDU_SIZE_ATTR.

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Directory LDAP API 1.2.0 – < 1.2.9 1.2.9

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache-directory-api 2.1.9-1 —
Debian 13 apache-directory-api No fix yet —
Debian 12 apache-directory-api No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 apache-directory-api No fix yet —
Ubuntu 26.04 LTS apache-directory-api No fix yet —
Ubuntu 24.04 LTS apache-directory-api No fix yet —
Ubuntu 22.04 LTS apache-directory-api No fix yet —
Ubuntu 20.04 LTS apache-directory-api No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS apache-directory-api No fix yet —
Ubuntu 16.04 LTS apache-directory-api No fix yet —

References