cve.bz

CVE-2026-40683 openstack keystone: Type Confusion

7.7 highEPSS 0.3%Fix available

High (7.7) in openstack keystone. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in keystone 28.0.1.

On this page
In 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.

Severity

CVSS 3.1

7.7 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-843 Access of Resource Using Incompatible Type (Type Confusion)
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40683 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40683?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40683?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40683 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenStack Keystonefrom 8.0.0 before 25.0.1
OpenStack Keystonefrom 26.0.0 before 26.1.1
OpenStack Keystonefrom 27.0.0 before 27.0.1
OpenStack Keystonefrom 28.0.0 before 28.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pfx2-9x9m-7ghxPyPIkeystone<28.0.128.0.1
PYSEC-2026-2550PyPIkeystone<28.0.128.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11keystone2:18.1.0-1+deb11u3DLA-4611-1
Debian12keystone2:22.0.2-0+deb12u2DEBIAN-CVE-2026-40683
Debian13keystone2:27.0.0-3+deb13u3DEBIAN-CVE-2026-40683
Debian14keystone2:29.0.0~rc1-2DEBIAN-CVE-2026-40683
Ubuntu22.04:LTSkeystone2:21.0.1-0ubuntu2.4UBUNTU-CVE-2026-40683
Ubuntu24.04:LTSkeystone2:25.0.0-0ubuntu1.4UBUNTU-CVE-2026-40683
Ubuntu25.10keystone2:28.0.0-0ubuntu1.3UBUNTU-CVE-2026-40683
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSkeystoneno fix listedUBUNTU-CVE-2026-40683
Red Hatopenstack:18.0::el9python3-keystone, openstack-keystone1:23.0.3-18.0.20260610133808.9e3dfb4.el9ostRHSA-2026:39808

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

There's a flaw in OpenStack Keystone's LDAP identity backend allows unauthorized access. When the `user_enabled_invert` configuration option is set to its default of `False`, users marked as disabled in LDAP are incorrectly treated as enabled within Keystone. This enables them to authenticate and perform actions, affecting Red Hat OpenStack Platform deployments utilizing the LDAP identity backend without `user_enabled_invert=True` or `user_enabled_emulation` configured.

This flaw happens due to the fact that any non-empty string in the Python programing language are handled as `True`, openstack-keystone lacks the proper conversion from string to boolean type when reading the user enabled LDAP attribute when the `user_enabled_invert` configuration is set to false, this will lead to any previously existing user which is disabled in the LDAP side will be handled as enabled by the OpenStack Keystone.

Red Hat Product Security has rated this flaw as having the severity of Moderate as for exploiting this flaw the attacker needs to have a previous access to the targeted system, additionally the impact will be limited to the same level of access the attacker had previously it had its user disabled in the LDAP side.

Red Hat's mitigation

To mitigate this issue, configure OpenStack Keystone to correctly interpret the LDAP user enabled attribute. Set the `user_enabled_invert` option to `True` in the `keystone.conf` file.

Example:

```ini

[ldap]

user_enabled_invert = True

```

After modifying the configuration, restart the Keystone service for the changes to take effect. This may temporarily disrupt authentication services.

Additionally the user should start using an LDAP attribute with inverted semantics (such as nsAccountLock) to match the same semantics of the keystone side.

ProductPackageStateAdvisory
Red Hat OpenStack Services on OpenShift 18.0openstack-keystone-1:23.0.3-18.0.20260610133808.9e3dfb4.el9ostFixed 2026-07-15RHSA-2026:39808
Red Hat OpenStack Platform 13 (Queens)openstack-keystoneAffected
Red Hat OpenStack Platform 13 (Queens)rhosp13/openstack-keystoneAffected
Red Hat OpenStack Platform 16.2openstack-keystoneNot affected
Red Hat OpenStack Platform 16.2rhosp-rhel8/openstack-keystoneNot affected
Red Hat OpenStack Platform 17.1openstack-keystoneNot affected
Red Hat OpenStack Platform 17.1rhosp-rhel9/openstack-keystoneNot affected
Red Hat OpenStack Platform 18.0rhoso/openstack-keystone-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40683.

References

Check your stackJSON