CVE-2026-40683: 
OpenStack Keystone vulnerability analysis and mitigation

Overview

CVE-2026-40683 is an authentication bypass vulnerability in OpenStack Keystone's LDAP identity backend, classified as High severity. The flaw causes disabled LDAP user accounts to be treated as enabled, allowing them to authenticate and perform actions within OpenStack. It affects Keystone versions >=8.0.0 <25.0.1, >=26.0.0 <26.1.1, >=27.0.0 <27.0.1, and >=28.0.0 <28.0.1. The vulnerability was publicly disclosed on April 14, 2026, with a CVE request filed with MITRE on April 10, 2026. It carries a CVSS v3.1 base score of 7.7 (High) (GitHub Advisory, oss-security).

Technical details

The root cause is a type confusion flaw (CWE-843) in the _ldap_res_to_model method of the UserApi class within Keystone's LDAP backend. When the user_enabled_invert configuration option is False (the default), the method skips string-to-boolean conversion and passes the raw LDAP attribute value (e.g., the string "FALSE") directly to Python's truthiness evaluation. Since any non-empty string is truthy in Python, a user whose LDAP enabled attribute is set to "FALSE" is incorrectly evaluated as enabled by Keystone. Only deployments using the LDAP identity backend without user_enabled_invert=True or user_enabled_emulation are affected; the bug was independently reported by Benedikt Trefzer (Cirrax GmbH) and Andrew Bogott (Wikimedia Foundation) (oss-security, GitHub Advisory).

Impact

Successful exploitation allows disabled or revoked LDAP user accounts to authenticate to Keystone and perform privileged actions across connected OpenStack services, effectively bypassing access revocation controls. This creates significant risk for organizations relying on LDAP-based identity management, as terminated employees, compromised accounts, or intentionally revoked users retain full system access. The impact spans confidentiality (unauthorized data access), integrity (unauthorized modifications), and availability (potential service disruption), with scope extending beyond Keystone itself to all OpenStack services accessible via the compromised identity (GitHub Advisory, oss-security).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability requires the attacker to already possess valid LDAP credentials for a disabled account (low privileges required), and attack complexity is rated High due to the specific configuration dependency. The EPSS score is approximately 0.021% (6th percentile), indicating a low near-term exploitation probability. The CVE is not currently listed in the CISA Known Exploited Vulnerabilities catalog (GitHub Advisory).

Exploitation steps

  1. Identify target: Confirm the target OpenStack deployment uses the LDAP identity backend with default configuration (user_enabled_invert=False) and does not use user_enabled_emulation.
  2. Obtain disabled account credentials: Acquire credentials for an LDAP account that has been disabled in the directory (e.g., a former employee's account or a revoked service account).
  3. Authenticate to Keystone: Submit a standard authentication request to the Keystone API (e.g., POST /v3/auth/tokens) using the disabled account's credentials. Due to the type confusion bug, Keystone evaluates the raw LDAP string "FALSE" as truthy and grants a valid token.
  4. Perform unauthorized actions: Use the obtained Keystone token to access OpenStack services (Nova, Swift, Neutron, etc.) and perform actions commensurate with the account's role assignments, including data access, resource manipulation, or lateral movement within the infrastructure (oss-security, GitHub Advisory).

Indicators of compromise

  • Logs: Keystone authentication logs showing successful token issuance for accounts that are marked as disabled in the LDAP directory; cross-reference Keystone keystone.log authentication events against LDAP directory status for each authenticating user.
  • Network: API calls to OpenStack service endpoints (Nova, Swift, Neutron, etc.) originating from accounts that should have been deprovisioned, particularly after known account disable dates.
  • Audit: OpenStack audit logs (if enabled via CADF/Oslo.messaging) recording resource access or modification events attributed to disabled user accounts; review for actions taken during the vulnerability window between account disablement in LDAP and patch application.

Mitigation and workarounds

The primary remediation is to upgrade OpenStack Keystone to a patched version: 28.0.1, 27.0.1, 26.1.1, or 25.0.1 depending on the supported release line in use. The fix is also included in the gazpacho (29.0.0) release. For deployments unable to patch immediately, two workarounds are available: (1) set user_enabled_invert=True in the LDAP backend configuration and use an LDAP attribute with inverted semantics such as nsAccountLock, or (2) enable user_enabled_emulation to use group-based enabled status. After patching, administrators should audit LDAP access logs for authentication attempts from disabled accounts and review connected OpenStack services for unauthorized actions (oss-security, GitHub Advisory).

Community reactions

The vulnerability was disclosed via the OpenStack Vulnerability Management Team (OSSA-2026-007) by Goutham Pacha Ravi on the oss-security mailing list on April 14, 2026. Credit was given to Benedikt Trefzer (Cirrax GmbH), Andrew Bogott (Wikimedia Foundation), and Grzegorz Grasza (Red Hat) for independent discovery and remediation contributions. Debian issued a security advisory (DLA-4611-1 and DSA-6331-1) for the keystone package in June 2026, and Tenable published Nessus detection plugins for the vulnerability (oss-security, Debian LTS).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

keystone: 2:22.0.2-0+deb12u2

Fixed

sid

keystone: 2:29.0.0~rc1-2

Fixed

trixie

keystone: 2:27.0.0-3+deb13u3

Fixed

Ubuntu

Fixed

bionic (esm-infra)

keystone

Unknown

devel

keystone

Not Affected

focal (esm-infra)

keystone

Unknown

jammy

keystone: 2:21.0.1-0ubuntu2.4

Fixed

noble

keystone: 2:25.0.0-0ubuntu1.4

Fixed

questing

keystone: 2:28.0.0-0ubuntu1.3

Fixed

resolute

keystone

Not Affected

xenial (esm-infra-legacy)

keystone

Unknown

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related OpenStack Keystone vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-43000HIGH8.8
  • NixOS logoNixOS
  • openstack-keystone-2025.2-fips
NoYesMay 28, 2026
CVE-2026-42999HIGH8.8
  • NixOS logoNixOS
  • openstack-keystone-2025.1-fips
NoYesMay 28, 2026
CVE-2026-42998HIGH8.8
  • NixOS logoNixOS
  • openstack-keystone-2026.1
NoYesMay 28, 2026
CVE-2026-44394HIGH8.1
  • NixOS logoNixOS
  • openstack-keystone-2025.2-fips
NoYesMay 28, 2026
CVE-2026-43001HIGH8
  • NixOS logoNixOS
  • openstack-keystone-2025.2-fips
NoYesMay 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management