# CVE-2026-40683: OpenStack Keystone: LDAP identity backend does not convert enabled attribute to boolean

- Severity: High 7.7 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-04-14T20:05:03.274Z
- Modified: 2026-09-10T03:51:02.522Z
- Also known as: GHSA-pfx2-9x9m-7ghx, PYSEC-2026-2550
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

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

## Every score

- mitre: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`
- PyPA Advisory Database: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H`

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

## Sources

- CVE List: [CVE-2026-40683](https://www.cve.org/CVERecord?id=CVE-2026-40683), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-pfx2-9x9m-7ghx](https://github.com/advisories/GHSA-pfx2-9x9m-7ghx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40683](https://nvd.nist.gov/vuln/detail/CVE-2026-40683), Public domain, modified 2026-08-05
- PyPA Advisory Database: [PYSEC-2026-2550](https://osv.dev/vulnerability/PYSEC-2026-2550), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40683 · Whole record: https://cve.day/CVE-2026-40683.json · Rebuilt by cve.day 2026-11-25T22:59:18.788Z
