CVSS 3.1
7.7 highCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:HHigh (7.7) in openstack keystone. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in keystone 28.0.1.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:Hkeystone (PyPI): fixed in 28.0.1Explain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| OpenStack Keystone | from 8.0.0 before 25.0.1 |
| OpenStack Keystone | from 26.0.0 before 26.1.1 |
| OpenStack Keystone | from 27.0.0 before 27.0.1 |
| OpenStack Keystone | from 28.0.0 before 28.0.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-pfx2-9x9m-7ghx | PyPI | keystone | <28.0.1 | 28.0.1 |
| PYSEC-2026-2550 | PyPI | keystone | <28.0.1 | 28.0.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | keystone | 2:18.1.0-1+deb11u3 | DLA-4611-1 |
| Debian | 12 | keystone | 2:22.0.2-0+deb12u2 | DEBIAN-CVE-2026-40683 |
| Debian | 13 | keystone | 2:27.0.0-3+deb13u3 | DEBIAN-CVE-2026-40683 |
| Debian | 14 | keystone | 2:29.0.0~rc1-2 | DEBIAN-CVE-2026-40683 |
| Ubuntu | 22.04:LTS | keystone | 2:21.0.1-0ubuntu2.4 | UBUNTU-CVE-2026-40683 |
| Ubuntu | 24.04:LTS | keystone | 2:25.0.0-0ubuntu1.4 | UBUNTU-CVE-2026-40683 |
| Ubuntu | 25.10 | keystone | 2:28.0.0-0ubuntu1.3 | UBUNTU-CVE-2026-40683 |
| Ubuntu | Pro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS | keystone | no fix listed | UBUNTU-CVE-2026-40683 |
| Red Hat | openstack:18.0::el9 | python3-keystone, openstack-keystone | 1:23.0.3-18.0.20260610133808.9e3dfb4.el9ost | RHSA-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 rates this Moderate.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenStack Services on OpenShift 18.0 | openstack-keystone-1:23.0.3-18.0.20260610133808.9e3dfb4.el9ost | Fixed 2026-07-15 | RHSA-2026:39808 |
| Red Hat OpenStack Platform 13 (Queens) | openstack-keystone | Affected | |
| Red Hat OpenStack Platform 13 (Queens) | rhosp13/openstack-keystone | Affected | |
| Red Hat OpenStack Platform 16.2 | openstack-keystone | Not affected | |
| Red Hat OpenStack Platform 16.2 | rhosp-rhel8/openstack-keystone | Not affected | |
| Red Hat OpenStack Platform 17.1 | openstack-keystone | Not affected | |
| Red Hat OpenStack Platform 17.1 | rhosp-rhel9/openstack-keystone | Not affected | |
| Red Hat OpenStack Platform 18.0 | rhoso/openstack-keystone-rhel9 | Not 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.