{"id":"CVE-2026-40683","published":"2026-04-14T20:05:03Z","modified":"2026-08-05T18:32:06Z","title":"In OpenStack Keystone before 28.0.1, the LDAP identity backend does not convert the user enabled attribute to a…","vendor":"OpenStack","product":"Keystone","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.28584,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://bugs.launchpad.net/keystone/+bug/2121152","tags":[]},{"url":"https://bugs.launchpad.net/keystone/+bug/2141713","tags":[]},{"url":"https://review.opendev.org/958205","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2026/04/14/9","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/08/05/17","tags":[]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":5.72},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"openstack","affectedVersions":[{"vendor":"OpenStack","product":"Keystone","versions":[">= 8.0.0, < 25.0.1",">= 26.0.0, < 26.1.1",">= 27.0.0, < 27.0.1",">= 28.0.0, < 28.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-14T20:14:37.459439Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"keystone","vulnerableRanges":["<28.0.1"],"patched":["28.0.1"],"from":["GHSA-pfx2-9x9m-7ghx","PYSEC-2026-2550"],"provenance":"source"}],"summary":{"text":"In OpenStack Keystone before 28.0.1, the LDAP identity backend's UserApi class fails to convert the user enabled attribute to a boolean when the default user_enabled_invert setting (False) is in use, so the raw LDAP string is treated as truthy. An attacker who already holds valid credentials for an account that is disabled in LDAP can authenticate and act as an enabled user, provided the deployment uses the LDAP identity backend without user_enabled_invert=True or user_enabled_emulation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:37Z"},"euvd":{"id":"EUVD-2026-22701","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-38155","published":"2021-08-06","fixed":"19.0.1","kev":false},{"cve":"CVE-2026-33551","published":"2026-04-10","fixed":"26.1.1","kev":false},{"cve":"CVE-2025-65073","published":"2025-11-17","fixed":"28.0.0","kev":false,"link":{"from":"CVE-2025-65073","to":"CVE-2026-40683","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:keystone","fromFixed":"28.0.0","toFixed":"28.0.1","daysApart":148}]}},{"cve":"CVE-2026-40683","published":"2026-04-14","fixed":"28.0.1","kev":false},{"cve":"CVE-2026-42998","published":"2026-05-28","fixed":"29.0.2","kev":false},{"cve":"CVE-2026-42999","published":"2026-05-28","fixed":"29.0.2","kev":false},{"cve":"CVE-2026-43000","published":"2026-05-28","fixed":"29.0.2","kev":false}],"package":"PyPI:keystone"}}