Apache Directory LDAP API: Denial of service via excessive memory allocation in BER decode
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.
CVE-2026-102731
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-102731
Apache Directory LDAP API
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "Apache Software Foundation",
"product": "Apache Directory LDAP API",
"versions": [
{
"status": "affected",
"version": "1.2.0",
"lessThan": "1.2.9",
"versionType": "semver"
}
],
"packageURL": "pkg:maven/org.apache.directory.api/api-asn1-ber",
"packageName": "org.apache.directory.api:api-asn1-ber",
"collectionURL": "https://repo.maven.apache.org/maven2",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-102731
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #8832 · Revision 1
- Added to Heist Feed
- Publisher date