Memory allocation with excessive size value vulnerability in Apache Directory LDAP API. (CVE-2026-102731)
A vulnerability in Apache Directory LDAP API versions 1.2.0 through before 1.2.9 allows a malicious peer or man-in-the-middle to trigger excessive memory allocation by sending a small BER-encoded response. This can cause the client JVM to throw an OutOfMemoryError or exhaust heap memory, leading to denial of service. The issue is fixed in version 1.2.9.
AI Analysis
Technical Summary
The Apache Directory LDAP API contains a memory allocation vulnerability (CVE-2026-102731) where an attacker can send a crafted BER-encoded response that causes the client to allocate an excessively large amount of memory before receiving actual data. This results in an OutOfMemoryError that bypasses DecoderException handlers or pins large memory allocations per connection, allowing denial of service by exhausting heap memory with only a few connections. The vulnerability affects versions from 1.2.0 up to but not including 1.2.9. The issue can also impact embedding servers that do not set MAX_PDU_SIZE_ATTR, as unauthenticated pre-bind clients can trigger the same behavior.
Potential Impact
Successful exploitation leads to denial of service by causing the client JVM to run out of memory or by exhausting heap memory through multiple connections. This can disrupt LDAP client operations and potentially affect embedding servers that lack proper configuration to limit PDU size.
Mitigation Recommendations
Users should upgrade to Apache Directory LDAP API version 1.2.9 or later, which contains the fix for this vulnerability. No other mitigations are indicated. Patch status is confirmed by the vendor advisory recommending upgrade to 1.2.9.
Memory allocation with excessive size value vulnerability in Apache Directory LDAP API. (CVE-2026-102731)
Description
A vulnerability in Apache Directory LDAP API versions 1.2.0 through before 1.2.9 allows a malicious peer or man-in-the-middle to trigger excessive memory allocation by sending a small BER-encoded response. This can cause the client JVM to throw an OutOfMemoryError or exhaust heap memory, leading to denial of service. The issue is fixed in version 1.2.9.
Affected software
pkg:maven/org.apache.directory.api/api-ldap-clientRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Apache Directory LDAP API contains a memory allocation vulnerability (CVE-2026-102731) where an attacker can send a crafted BER-encoded response that causes the client to allocate an excessively large amount of memory before receiving actual data. This results in an OutOfMemoryError that bypasses DecoderException handlers or pins large memory allocations per connection, allowing denial of service by exhausting heap memory with only a few connections. The vulnerability affects versions from 1.2.0 up to but not including 1.2.9. The issue can also impact embedding servers that do not set MAX_PDU_SIZE_ATTR, as unauthenticated pre-bind clients can trigger the same behavior.
Potential Impact
Successful exploitation leads to denial of service by causing the client JVM to run out of memory or by exhausting heap memory through multiple connections. This can disrupt LDAP client operations and potentially affect embedding servers that lack proper configuration to limit PDU size.
Mitigation Recommendations
Users should upgrade to Apache Directory LDAP API version 1.2.9 or later, which contains the fix for this vulnerability. No other mitigations are indicated. Patch status is confirmed by the vendor advisory recommending upgrade to 1.2.9.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-h24g-pjpf-8f2m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-102731"]
- State
- PUBLISHED
Threat ID: 6abfee9ca43b0b3b89e551aa
Added to database: 10/02/2026, 17:49:16 UTC
Last enriched: 10/02/2026, 18:03:44 UTC
Last updated: 10/03/2026, 02:46:02 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.