CVE-2026-19843

389-ds-base: 389-ds-base: command injection via unescaped ldap dn in cockpit 389 console ldap editor

Published Sep 7, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
A flaw was found in 389-ds-base. The Cockpit 389 Console's LDAP editor constructs an ldapsearch command by embedding an LDAP entry's distinguished name (DN) into a shell command string without proper escaping. An LDAP user with delegated privileges to create or rename directory entries could craft a malicious DN containing shell metacharacters. When a Cockpit administrator subsequently views the entry in the 389 Console, the embedded shell command executes with root privileges on the directory server host.

Analysis

AI-generated

Technical impact

The flaw in 389-ds-base’s Cockpit console constructs an ldapsearch command by directly inserting an LDAP entry’s DN into a shell string without escaping. An LDAP user with the right delegated rights to create or rename entries can forge a DN containing shell metacharacters. When a Cockpit administrator later browses that entry, the command string is executed with root privileges on the directory server host, allowing the attacker to run arbitrary code as root. This effectively hijacks the server’s operating system, compromising confidentiality, integrity, and availability.

Affected Systems

Systems affected are Red Hat Directory Server versions 11, 12, and 13 that have the Cockpit 389 Console installed. Red Hat Enterprise Linux hosts (versions 6, 7, 8, 9, 10) that include the Cockpit console on a 389-ds-base deployment are also impacted. Plain RHEL installations of 389-ds-base without Cockpit console are not affected.

Risk and Exploitability

The CVSS score of 8.4 indicates a high‑severity vulnerability. An attacker must possess LDAP delegated privileges to create or rename entries and a Cockpit administrator must view the entry; both conditions are typically restricted to internal users and administrators, so the exploitation vector is an authenticated, privileged user within the organization. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, suggesting no known public exploitation at the time of this analysis. Nonetheless, the severity and potential for execution of arbitrary code under root privileges make it a critical risk for any environment running the affected Cockpit console.

Remediation

Vendor Workaround

Restrict Cockpit 389 Console access to trusted administrators, and restrict delegated LDAP add/rename privileges to trusted accounts, until a fix is available. This issue only affects Red Hat Directory Server deployments that include the Cockpit console; plain RHEL 389-ds-base is not affected.


OpenCVE Recommended Actions

  • Apply the latest Red Hat security update that addresses the command‑injection issue in the Cockpit 389 Console for 389‑ds‑base.
  • Restrict access to the Cockpit 389 Console to trusted administrators and limit console usage to systems that require it.
  • Restrict delegated LDAP add or rename privileges to trusted accounts only until a patch is available.

Generated by OpenCVE AI on September 7, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/a:redhat:directory_server_e4s:11.5::el8
References
Type Values Removed Values Added
First Time appeared Redhat redhat Directory Server
Vendors & Products Redhat redhat Directory Server
Type Values Removed Values Added
CPEs cpe:/a:redhat:directory_server:12.8::el9
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:directory_server:11.9::el8
cpe:/a:redhat:directory_server_e4s:12.4::el9
References
Type Values Removed Values Added
First Time appeared Redhat directory Server E4s
Redhat directory Server Eus
CPEs cpe:/a:redhat:directory_server_e4s:11.7::el8
cpe:/a:redhat:directory_server_e4s:12.2::el9
cpe:/a:redhat:directory_server_eus:12.6::el9
Vendors & Products Redhat directory Server E4s
Redhat directory Server Eus
References
Type Values Removed Values Added
First Time appeared Redhat directory Server E2s
CPEs cpe:/a:redhat:directory_server:13 cpe:/a:redhat:directory_server:13.2::el10
cpe:/a:redhat:directory_server_e2s:13.0::el10
Vendors & Products Redhat directory Server E2s
References
Type Values Removed Values Added
Description A flaw was found in 389-ds-base. The Cockpit 389 Console's LDAP editor constructs an ldapsearch command by embedding an LDAP entry's distinguished name (DN) into a shell command string without proper escaping. An LDAP user with delegated privileges to create or rename directory entries could craft a malicious DN containing shell metacharacters. When a Cockpit administrator subsequently views the entry in the 389 Console, the embedded shell command executes with root privileges on the directory server host.
Title 389-ds-base: 389-ds-base: command injection via unescaped ldap dn in cockpit 389 console ldap editor
First Time appeared Redhat
Redhat directory Server
Redhat enterprise Linux
Weaknesses CWE-78
CPEs cpe:/a:redhat:directory_server:11
cpe:/a:redhat:directory_server:12
cpe:/a:redhat:directory_server:13
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat directory Server
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 4, 2026, 10:12 PM
Reserved
Aug 14, 2026, 8:02 AM
Status
Awaiting Analysis
Published
Sep 7, 2026, 3:17 PM
Modified
Nov 4, 2026, 11:17 PM
Severity
Important
Public date
Sep 7, 2026, 12:00 PM