Advisory

PYSEC-2026-2550

Also known as: CVE-2026-40683, GHSA-pfx2-9x9m-7ghx

Summary

OpenStack Keystone: LDAP identity backend does not convert enabled attribute to boolean

Details

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.

Severity

High Basis: CVSS v3 score 7.7, vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

keystone

PyPI · All systems

Affected

  • introduced 0, fixed 28.0.1 (ecosystem)

Fixed versions

28.0.1

Fix

  • Fixed version 28.0.1
    pip install --upgrade keystone==28.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences