Skip to main content

OpenBSD ldapd CVE-2026-103547

| EUVDEUVD-2026-90259 CRITICAL
Incorrect Authorization (CWE-863)
2026-09-30 mitre GHSA-f239-ggxr-g679
9.2
CVSS 4.0 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed ldapd service
  2. Delivery
    Open Bind connection during victim auth
  3. Exploit
    Reuse victim's fd and message ID
  4. Execution
    Receive victim's cached auth result
  5. Impact
    Complete Bind as another identity

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires that ldapd be explicitly enabled (it is NOT enabled by default on OpenBSD) and reachable by the attacker, and that it use delegated BSD authentication for Bind. The auth-bypass requires winning a race: a new client connection must reuse the exact same LDAP child-process client file descriptor AND LDAP message ID as a recently-closed, successfully-authenticated connection - a non-deterministic timing/resource-reuse condition (reflected as AC:H/AT:P). The NULL-pointer-dereference DoS variant only needs the correlating connection to be missing when an auth result arrives, which is easier to induce. Limiting factors: non-default service, dependence on BSD-auth delegation, and the probabilistic fd+msgid collision.

Impact

This is a genuine authentication-bypass flaw (CWE-863) in OpenBSD's ldapd, confirmed by an upstream source-code fix and two errata (7.8/057, 7.9/021), so the technical defect is well-established rather than speculative. The vendor CVSS 4.0 base of 9.2 is aggressive: it captures VC:H/VI:H (bind as another identity gives directory read/write under a spoofed principal) but is tempered by AC:H and AT:P, correctly reflecting that success requires winning a race where a new connection reuses BOTH the same client file descriptor AND the same LDAP message ID as a just-closed authenticated session. My independent CVSS 3.1 estimate is ~7.1 (AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:L) - the 9.2 headline overstates day-to-day risk because the reliability of hitting the fd+msgid collision is uncertain and non-deterministic. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no signal of active or automated exploitation; combined with the fact that ldapd is not enabled by default, real-world exposure is narrow. The most reliable path in practice is the secondary NULL-pointer dereference (crash/DoS of ldapd), which needs no race precision. Net: real and worth patching where ldapd is deployed, but not a broad emergency.

Exploit ScenarioDerived

An attacker who can reach an exposed ldapd repeatedly opens Bind connections while a legitimate user authenticates; if the attacker's fresh connection is assigned the same client file descriptor and reuses the victim's LDAP message ID, ldapd delivers the victim's earlier BSD-authentication success to the attacker, completing a Bind as that identity. Alternatively, arranging for the correlating connection to be absent triggers a NULL-pointer dereference that crashes the daemon. No public exploit code was identified at time of analysis, and the auth-bypass path is timing-dependent (AC:H/AT:P).

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 30, 2026

Remote, unauthenticated attackers who can reach an explicitly enabled OpenBSD ldapd instance can complete an LDAP Bind as another identity because delegated BSD authentication results are correlated only by the LDAP child process's client file descriptor and LDAP message ID. When a connection closes and a later connection reuses the same file descriptor and message ID, the earlier successful authentication result is delivered to the new connection, granting the attacker the other user's identity (CWE-863, incorrect authorization); the same code path also dereferences a missing connection and crashes the daemon for denial of service. Exploitation is gated by two prerequisites: ldapd must be manually enabled (it is not on by default) and configured to use delegated BSD authentication, and the identity takeover additionally requires winning a timing/resource-reuse race to land on the exact fd+message-ID pair, which is why both the CVSS 4.0 vector (AC:H/AT:P) and the independent CVSS 3.1 assessment (AC:H) rate the attack complexity as high despite PR:N. The defect is confirmed by an upstream OpenBSD source fix and errata 7.8/057 and 7.9/021; no public exploit code and no CISA KEV active-exploitation entry were identified at time of analysis.

RemediationAI

Vendor-released patch: install OpenBSD 7.9 errata 021 (signed patch https://ftp.openbsd.org/pub/OpenBSD/patches/7.9/common/021_ldapd.patch.sig) or OpenBSD 7.8 errata 057, per https://www.openbsd.org/errata79.html and https://www.openbsd.org/errata78.html; on -stable these are applied automatically by syspatch, otherwise rebuild and reinstall the ldapd binary from an updated source tree containing commit 4f3f58e83c2a6d239c544236a9d4d76c74bbf960. If patching cannot be done immediately, the highest-value compensating control is to stop running the vulnerable service: disable ldapd with rcctl disable ldapd and terminate it (rcctl stop ldapd) on any host that does not strictly require directory services - the trade-off is loss of LDAP service for directory clients. Where ldapd must stay up, restricting network reachability with pf rules that permit only trusted directory clients to the LDAP/LDAPS ports materially shrinks the attacker pool needed to win the fd/message-ID race and simultaneously reduces the easier-to-trigger NULL-pointer-dereference denial of service; the trade-off is that any legitimate client outside the allow-list loses access, and this is a risk reduction rather than a fix because a permitted client can still attempt the race. As a further hardening step, review whether delegated BSD authentication is required at all and, if local authentication suffices, remove the delegation configuration so Bind results never traverse the imsg correlation path; this changes authentication semantics for directory users and should be validated against applications before being adopted. Monitor for ldapd crashes (the "auth result with no connection" warning appears after patching, though pre-patch crashes may be silent) and audit Bind activity for sources whose identity does not match expected credentials.

Affected VersionsENISA

OpenBSD 7.9 <errata 021
OpenBSD 7.8 <errata 057

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenBSD's ldapd is a privilege-separated LDAP directory server composed of a parent process (ldapd.c), connection handlers (conn.c) and a delegated authentication child (ldape.c) that brokers Bind requests to BSD authentication via imsg messages. Before the fix, the auth_req and auth_result structures carried only an int fd (the child-process client socket file descriptor) and the LDAP message ID as correlation keys, and the helper conn_by_fd() looked up the pending connection by that raw descriptor. File descriptors are recycled aggressively by the kernel, so a descriptor freed when a connection closed could be reissued to a brand-new connection while an in-flight or late auth result for the old fd was still traveling between processes; the new connection then matched the stale result and inherited a completed Bind identity - a classic CWE-863 incorrect-authorization flaw rooted in using a reusable, non-unique resource identifier as a security association. The upstream commit (4f3f58e83c2a6d239c544236a9d4d76c74bbf960, auth.c/conn.c/ldapd.c/ldapd.h/ldape.c) replaces the fd with a monotonic uint64_t conn->id assigned at conn_accept() time, renames conn_by_fd() to conn_by_id(), propagates the id through the imsg auth request/result structs, and adds a NULL check in ldape_auth_result() that logs "auth result with no connection" instead of dereferencing a missing struct conn - closing both the authentication bypass and the NULL-pointer-dereference crash. The 9.2 CVSS 4.0 score (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L) and the independent CVSS 3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L rating agree that success depends on attacker-controlled conditions (fd/message-ID reuse) rather than on authentication or user interaction.

Know when Openbsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.7 HIGH

Network-reachable and unauthenticated (PR:N), but the fd+msgid reuse race makes it AC:H; binding as another identity yields C:H/I:H, while the NULL-deref crash is A:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In ldapd in OpenBSD 7.8 before errata 057 and 7.9 before errata 021, delegated BSD authentication results are correlated only by the LDAP child process client file descriptor and LDAP message ID. After a connection closes, a later connection that reuses the same file descriptor and message ID can receive the earlier authentication result. A remote attacker who can reach ldapd can complete a Bind as another identity. A missing connection can also cause a NULL pointer dereference. (ldapd is not enabled by default.)

Executive ViewAI

Why It Matters

A critical vulnerability in OpenBSD's ldapd service, when manually enabled with delegated BSD authentication, could allow a network attacker to impersonate another directory user or crash the daemon, disrupting authentication services. Because no vendor-released patch identified at time of analysis and exploitation requires specific but achievable conditions, organizations using this configuration face potential unauthorized access to directory-backed systems and availability loss. Leadership should prioritize identifying exposed instances and applying interim mitigations until a fix is released.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include disabling ldapd or delegated BSD authentication where not required, restricting network reachability to trusted management networks, monitoring for daemon crashes and anomalous LDAP bind sequences, and applying the vendor patch once released.

Threat Intelligence Overview

EPSS Score
0.6%
Top 53% exploitable
Prevalence
Low
ldapd is a niche OpenBSD daemon, not enabled by default
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2026-123158 HIGH POC
8.1 Nov 05

Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2017-5850 HIGH POC
7.5 Mar 27

httpd in OpenBSD allows remote attackers to cause a denial of service (memory consumption) via a series of requests for

CVE-2025-26465 MEDIUM
6.8 Feb 18

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-0777 MEDIUM
6.5 Jan 14

The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy