Skip to content
Heist/ feed
Back to feed
High

apache-directory-api — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-102731

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.

Products
apache-directory-api
Affected versions
1.0.0-1, 1.0.0-2, 1.0.0~M20-3, 1.0.0~M20-5, 2.1.2-1, 2.1.2-2, 2.1.2-2build1
Fixed versions
Not specified
CVEs
CVE-2026-102731
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:53 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-102731

core-osv · Original source

Published 2 Oct 2026, 10:17 UTC

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.

osv:UBUNTU-CVE-2026-102731

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

apache-directory-api

Fixed versions: Not specified

Complete source record
{
  "id": "27bc08ac695ef0c7bb783c75cb16a4832a952090c3dfe1a294f4e204e9e602a8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-102731",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-102731",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-102731",
    "products": [
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0~M20-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0~M20-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.0.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.2-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.2-2build1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "apache-directory-api",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.2-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.1.2-2build1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-102731",
      "aliases": [
        "UBUNTU-CVE-2026-102731"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.0.0~M20-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "1.0.0~M20-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.0.0~M20-5",
            "1.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "1.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "1.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "1.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.1.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "2.1.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.1.2-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "2.1.2-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-directory-api",
            "purl": "pkg:deb/ubuntu/apache-directory-api?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.1.2-2",
            "2.1.2-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102731.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libapache-directory-api-java",
                "binary_version": "2.1.2-2build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:45.787286776Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-102731"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-102731",
        "https://www.cve.org/CVERecord?id=CVE-2026-102731",
        "https://www.openwall.com/lists/oss-security/2026/10/02/3",
        "https://lists.apache.org/thread.html/b8kg8881pc0v8lp59w0fcfrs69wjbqvd"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-102731",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359751,
  "published_at": "2026-10-02T10:17:00+00:00"
}