Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed ldapd service
-
DeliveryOpen Bind connection during victim auth
-
ExploitReuse victim's fd and message ID
-
ExecutionReceive victim's cached auth result
-
ImpactComplete 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot
OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se
sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static
The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin
The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a
Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
httpd in OpenBSD allows remote attackers to cause a denial of service (memory consumption) via a series of requests for
A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
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
EUVD-2026-90259
GHSA-f239-ggxr-g679
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB