CVE-2026-40683
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn OpenStack Keystone before 28.0.1, the LDAP identity backend does not convert the user enabled attribute to a boolean when the user_enabled_invert configuration option is False (the default). The _ldap_res_to_model method in the UserApi class only performed string-to-boolean conversion when user_enabled_invert was True. When False, the raw string value from LDAP (e.g., "FALSE") was used directly. Since non-empty strings are truthy in Python, users marked as disabled in LDAP were treated as enabled by Keystone, allowing them to authenticate and perform actions. All deployments using the LDAP identity backend without user_enabled_invert=True or user_enabled_emulation are affected.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn OpenStack Keystone before 28.0.1, the LDAP identity backend fails to properly convert the user enabled attribute to a boolean when user_enabled_invert=False (the default). The _ldap_res_to_model method in the UserApi class passes raw LDAP string values like 'FALSE' directly to the model without conversion. Since non-empty strings are truthy in Python, disabled users appear enabled to Keystone and can successfully authenticate and perform actions.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if Keystone uses LDAP identity backendInspect the Keystone configuration file (typically /etc/keystone/keystone.conf or /etc/keystone.conf) and look for the [identity] section. Check if the driver option is set to ldap, e.g., 'driver = ldap' under [identity] or [identity/backend] section.Affected if The Keystone identity driver is configured to use LDAP (e.g., driver = ldap)
-
Check user_enabled_invert configurationIn the Keystone configuration file, locate the [ldap] section and search for the user_enabled_invert option. If not present, it defaults to False.Affected if user_enabled_invert is set to False or is not defined (defaults to False)
-
Check user_enabled_emulation configurationIn the Keystone configuration file, locate the [ldap] section and search for user_enabled_emulation. This setting is typically False by default.Affected if user_enabled_emulation is not enabled (False or not defined), meaning the vulnerable code path is active
-
Verify Keystone versionRun 'keystone --version' or check the installed package version via package manager (e.g., 'rpm -q openstack-keystone' or 'dpkg -l python3-keystone'). Compare the version number to the fixed version 28.0.1.Affected if The installed Keystone version is lower than 28.0.1 (e.g., 28.0.0 or earlier)
-
Confirm LDAP user_enabled_attribute configurationIn the Keystone configuration file under [ldap], check if user_enabled_attribute is set (commonly to 'enabled' or similar). This attribute stores the enabled/disabled status from LDAP.Affected if user_enabled_attribute is configured and maps to an LDAP attribute that returns string values 'TRUE'/'FALSE' for user status
A user is affected if they run a Keystone version below 28.0.1 with LDAP identity backend enabled, user_enabled_invert=False (or unset), and user_enabled_emulation disabled, where the LDAP user enabled attribute returns string values that are not properly converted to boolean.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedSet user_enabled_invert=True or user_enabled_emulation=True in the Keystone LDAP configuration, or upgrade to Keystone 28.0.1 or later where the conversion is properly implemented.
OpenStack Keystone 28.0.1
- 1. Schedule a maintenance window for the OpenStack Keystone service
- 2. Back up the current Keystone configuration files, especially the LDAP-related settings in keystone.conf
- 3. Upgrade Keystone to version 28.0.1 or later using your distribution's package manager or OpenStack deployment tool (e.g., apt, yum, kolla-ansible, openstack-ansible)
- 4. Verify the upgrade completed successfully by checking the Keystone service status and version
- 5. Test LDAP user authentication, particularly verifying that users disabled in LDAP are correctly denied access
- 6. Confirm that the user_enabled_invert and user_enabled_emulation settings work as expected
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40683 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40683 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data