OpenStack Keystone: LDAP identity backend does not convert enabled attribute to boolean
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | keystone | < 28.0.1 | 28.0.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-40683
- https://bugs.launchpad.net/keystone/+bug/2121152
- https://bugs.launchpad.net/keystone/+bug/2141713
- https://github.com/openstack/keystone
- https://review.opendev.org/958205
- https://www.openwall.com/lists/oss-security/2026/04/14/9
- https://pypi.org/project/keystone
- https://github.com/advisories/GHSA-pfx2-9x9m-7ghx
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H- Weakness (CWE)
CWE-843- Platform
- Python (PyPI)
- Package
keystone- Disclosed
- 14.04.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2550 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-pfx2-9x9m-7ghx - CC BY 4.0
Vulnerability history: keystone
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 42
- First → latest
- 09.2012 05.2026
- Without a fix
- 3
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 18
- Medium 21
- Low 1
- Unrated 1
Disclosures per year
- 2017: 0
- 2018: 2
- 2019: 1
- 2020: 4
- 2021: 0
- 2022: 14
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 7
earlier: 13
-
OpenStack Keystone: LDAP identity backend does not convert enabled attribute to boolean this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.