---
id: CVE-2026-11786
title: >-
  389-ds-base: 389-ds-base: heap out-of-bounds read in ldif parser
  str2entry_state_information_from_type()
summary: >-
  A flaw was found in 389 Directory Server. The LDIF parser reads past the end
  of a heap buffer when processing attribute types with trailing semicolons
  during database import, causing an out-of-bounds read detectable under memory
  instrume…
severity: low
cvss: 1.9
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: 'redhat-ds:11/389-ds-base'
affected:
  - 'redhat-ds:11/389-ds-base (all versions)'
  - 'redhat-ds:12/389-ds-base (all versions)'
  - 389-ds-base (all versions)
  - 389-ds-base (all versions)
  - 389-ds-base
  - 389-ds-base (all versions)
  - 389-ds-base (all versions)
  - 389-ds-base (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-09T13:37:04.724370Z'
published: '2026-06-09'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T17:50:49.736Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-11786'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-11786'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2485426'
    label: RHBZ#2485426
tags:
  - cve.org
epss: 0.0016
epssPercentile: 0.05188
ingestedAt: '2026-11-06T18:00:12.499Z'
---

## Overview

A flaw was found in 389 Directory Server. The LDIF parser reads past the end of a heap buffer when processing attribute types with trailing semicolons during database import, causing an out-of-bounds read detectable under memory instrumentation.

## Affected

- `redhat-ds:11/389-ds-base (all versions)`
- `redhat-ds:12/389-ds-base (all versions)`
- `389-ds-base (all versions)`
- `389-ds-base (all versions)`
- `389-ds-base`
- `389-ds-base (all versions)`
- `389-ds-base (all versions)`
- `389-ds-base (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

Validate LDIF files for malformed attribute types before importing. Reject any LDIF entry containing attribute types with trailing semicolons (e.g., userCertificate;binary;). Pre-import validation: grep -nE '^[a-zA-Z][a-zA-Z0-9-]*;[^:]*;:' input.ldif && echo "REJECT: trailing semicolon in attribute type". This does not protect against the replication changelog path (corrupted stored data), but that path requires pre-existing database corruption, not external input.
