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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-10-02T09:22:00.813Z
- Modified: 2026-10-05T19:17:12.740Z
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- org.apache.directory.api:api-asn1-ber: from 1.2.0 before 1.2.9

## References

- <https://lists.apache.org/thread.html/b8kg8881pc0v8lp59w0fcfrs69wjbqvd> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/10/02/3>

## Sources

- CVE List: [CVE-2026-102731](https://www.cve.org/CVERecord?id=CVE-2026-102731), CVE Terms of Use, modified 2026-10-05
- NVD: [CVE-2026-102731](https://nvd.nist.gov/vuln/detail/CVE-2026-102731), Public domain, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-102731 · Whole record: https://cve.day/CVE-2026-102731.json · Rebuilt by cve.day 2026-11-25T22:59:41.925Z
