CVE-2026-40683
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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | keystone | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | keystone | Fixed | 2:28.0.0-0ubuntu1.3 | UBUNTU-CVE-2026-40683 |
| Ubuntu 24.04 | keystone | Fixed | 2:25.0.0-0ubuntu1.4 | UBUNTU-CVE-2026-40683 |
| Ubuntu 22.04 | keystone | Fixed | 2:21.0.1-0ubuntu2.4 | UBUNTU-CVE-2026-40683 |
| Ubuntu 20.04 | keystone | Fix pending | UBUNTU-CVE-2026-40683 | |
| Ubuntu 18.04 | keystone | Fix pending | UBUNTU-CVE-2026-40683 | |
| Ubuntu 16.04 | keystone | Fix pending | UBUNTU-CVE-2026-40683 | |
| Debian 14 | keystone | Fixed | 2:29.0.0~rc1-2 | DEBIAN-CVE-2026-40683 |
| Debian 13 | keystone | Fixed | 2:27.0.0-3+deb13u3 | DEBIAN-CVE-2026-40683 |
| Debian 12 | keystone | Fixed | 2:22.0.2-0+deb12u2 | DEBIAN-CVE-2026-40683 |
| PyPI library | keystone | Fixed | 28.0.1 | PYSEC-2026-2550 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenStack Keystone: affected: 8.0.0 to before 25.0.1, 26.0.0 to before 26.1.1, 27.0.0 to before 27.0.1, 28.0.0 to before 28.0.1; fixed in
25.0.1,26.1.1,27.0.1,28.0.1
References
- https://bugs.launchpad.net/keystone/+bug/2121152
- https://bugs.launchpad.net/keystone/+bug/2141713
- https://review.opendev.org/958205
- https://www.openwall.com/lists/oss-security/2026/04/14/9
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.