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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | apache-directory-api | No fix yet | — |
| Ubuntu 16.04 LTS | apache-directory-api | No fix yet | — |