CVE-2026-40683
HIGH 7.7CVSS 3.1OpenStack 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.
- Published
- 14 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Awaiting Analysis
- Weakness
- CWE-843
- Also known as
- GHSA-pfx2-9x9m-7ghxPYSEC-2026-2550
- Sources
- NVDJSONOSV GHSA-pfx2-9x9m-7ghxJSONOSV PYSEC-2026-2550JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | keystone | < 28.0.1 | 28.0.1 |
References
- https://bugs.launchpad.net/keystone/+bug/2121152 · WEB
- https://bugs.launchpad.net/keystone/+bug/2141713 · WEB
- https://review.opendev.org/958205 · WEB
- https://www.openwall.com/lists/oss-security/2026/04/14/9 · WEB
- http://www.openwall.com/lists/oss-security/2026/08/05/17
- https://nvd.nist.gov/vuln/detail/CVE-2026-40683 · ADVISORY
- https://github.com/openstack/keystone · PACKAGE
- https://pypi.org/project/keystone · PACKAGE
- https://github.com/advisories/GHSA-pfx2-9x9m-7ghx · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Apr 2026)