CVE-2026-40683: 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 userenabledinvert configuration option is False (the default). The ldaprestomodel method in the UserApi class only performed string-to-boolean conversion when userenabledinvert was True. When False, the raw string value from LDAP (e.g., "FALSE") was used directly.
Published Apr 14, 2026 · Updated Apr 16, 2026
Affected packages
keystone
- Ecosystem
- PyPI
- Affected
- < 28.0.1
- Fixed in
- 28.0.1
- Check
pip show keystone
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-42998
OpenStack Keystone doesn't verify that the user supplied in the authentication request matches the owner of the application credential
medium6.0May 28, 2026CVE-2026-42999
OpenStack Keystone has an Authorization Bypass
medium6.0May 28, 2026CVE-2026-43000
OpenStack Keystone has an Incorrect Authorization issue
medium6.0May 28, 2026CVE-2026-44394
OpenStack Keystone's federated token rescoping mechanism doesn't propagate the original token's expiry to the newly issued token
medium6.0May 28, 2026CVE-2026-43001
OpenStack Keystone has an Incorrect Authorization Issue
high7.9No fixMay 1, 2026CVE-2026-33551
OpenStack Keystone: Restricted application credentials can create EC2 credentials
low3.5Apr 10, 2026
