# CVE-2026-40683: keystone: In OpenStack Keystone before 28.0.1, the LDAP identity backend does not convert the user enabled attribute to a boole...

CVE-2026-40683 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2026-40683, released April 14, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-40683
- Priority: High
- CVSS: 7.7 (high)
- EPSS: 0.0034
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 14, 2026

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | keystone Debian 12.15 (bookworm) | 2:22.0.2-0+deb12u2 | [DEBIAN-CVE-2026-40683](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40683.md) | Apr 14, 2026 |
| Linux | keystone Debian 13.5 (trixie) | 2:27.0.0-3+deb13u3 | [DEBIAN-CVE-2026-40683](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40683.md) | Apr 14, 2026 |
| Linux | keystone Debian 14 | 2:29.0.0~rc1-2 | [DEBIAN-CVE-2026-40683](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40683.md) | Apr 14, 2026 |
| Linux | keystone Ubuntu 22.04.1 LTS (jammy) | 2:21.0.1-0ubuntu2.4 | [keystone 2:21.0.1-0ubuntu2.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-keystone-2-21.0.1-0ubuntu2.4.md) | Jun 24, 2026 |
| Linux | keystone Ubuntu 24.04.5 LTS (noble) | 2:25.0.0-0ubuntu1.4 | [keystone 2:25.0.0-0ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-keystone-2-25.0.0-0ubuntu1.4.md) | Jun 24, 2026 |
| Linux | keystone Ubuntu 25.10 (questing) | 2:28.0.0-0ubuntu1.3 | [keystone 2:28.0.0-0ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-keystone-2-28.0.0-0ubuntu1.3.md) | Jun 24, 2026 |
| Linux | keystone-common Ubuntu 22.04.1 LTS (jammy) | 2:21.0.1-0ubuntu2.4 | [keystone-common 2:21.0.1-0ubuntu2.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-keystone-common-2-21.0.1-0ubuntu2.4.md) | Jun 24, 2026 |
| Linux | keystone-common Ubuntu 24.04.5 LTS (noble) | 2:25.0.0-0ubuntu1.4 | [keystone-common 2:25.0.0-0ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-keystone-common-2-25.0.0-0ubuntu1.4.md) | Jun 24, 2026 |
| Linux | keystone-common Ubuntu 25.10 (questing) | 2:28.0.0-0ubuntu1.3 | [keystone-common 2:28.0.0-0ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-keystone-common-2-28.0.0-0ubuntu1.3.md) | Jun 24, 2026 |
| Linux | python3-keystone Ubuntu 22.04.1 LTS (jammy) | 2:21.0.1-0ubuntu2.4 | [python3-keystone 2:21.0.1-0ubuntu2.4](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-keystone-2-21.0.1-0ubuntu2.4.md) | Jun 24, 2026 |
| Linux | python3-keystone Ubuntu 24.04.5 LTS (noble) | 2:25.0.0-0ubuntu1.4 | [python3-keystone 2:25.0.0-0ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-keystone-2-25.0.0-0ubuntu1.4.md) | Jun 24, 2026 |
| Linux | python3-keystone Ubuntu 25.10 (questing) | 2:28.0.0-0ubuntu1.3 | [python3-keystone 2:28.0.0-0ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-python3-keystone-2-28.0.0-0ubuntu1.3.md) | Jun 24, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
