Skip to main content

Python CVE-2026-40683

| EUVDEUVD-2026-22701 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-04-14 cve@mitre.org GHSA-pfx2-9x9m-7ghx
7.7
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain credentials for LDAP-disabled account
  2. Delivery
    Authenticate to Keystone API endpoint
  3. Exploit
    Boolean conversion failure treats disabled as enabled
  4. Execution
    Receive valid authentication token
  5. Persist
    Access cloud resources across tenant boundaries
  6. Impact
    Exfiltrate data or disrupt services

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

OpenStack Keystone before 28.0.1 with LDAP identity backend enabled and user_enabled_invert configuration set to False (default). Attacker requires valid LDAP credentials for a disabled user account. No victim interaction needed.

Impact

Real-world risk is moderate-to-high for LDAP-integrated OpenStack deployments but requires specific preconditions. CVSS 7.7 reflects Network attack vector, High complexity (AC:H), Low privileges required (PR:L), and Changed scope (S:C) with partial confidentiality/integrity and high availability impact. The High complexity rating suggests successful exploitation requires specific deployment configurations (LDAP backend without user_enabled_invert=True or user_enabled_emulation). The Changed scope indicates potential cross-tenant boundary violations in multi-tenant clouds. SSVC assessment shows no active exploitation, non-automatable attack (requires valid credentials), and partial technical impact, suggesting lower urgency than fully remote unauthenticated flaws. However, the logic error is deterministic and easily triggered by any user account marked disabled in LDAP attempting authentication with valid credentials. Organizations using LDAP for access control rely on directory-based disable mechanisms for incident response and offboarding; this vulnerability completely bypasses that security control. Risk is highest in environments with: (1) LDAP identity backend, (2) disabled accounts with retained credentials, (3) multi-tenant deployments where scope change matters. Low EPSS probability (if measured) would reflect the niche deployment configuration rather than technical exploitability.

Exploit ScenarioDerived

An organization terminates an employee and disables their LDAP account according to standard offboarding procedures. The terminated employee retains knowledge of their password. Due to the boolean conversion flaw, when they attempt authentication against the Keystone API endpoint, the LDAP string value 'FALSE' for the enabled attribute is interpreted as truthy, bypassing the disabled-account check. Keystone issues valid authentication tokens allowing the ex-employee to access cloud resources, launch instances, or access tenant data across scope boundaries (S:C) depending on retained role assignments. In multi-tenant environments, this could enable cross-project information disclosure or resource manipulation until credentials are rotated.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 14, 2026

OpenStack Keystone's LDAP identity backend grants authentication access to disabled user accounts due to improper string-to-boolean conversion logic. Versions 8.0.0 through 28.0.0 fail to convert LDAP-disabled status into boolean values when user_enabled_invert is False (default), causing disabled accounts to authenticate as enabled. This affects all LDAP-backed Keystone deployments without specific configuration overrides. CVSS 7.7 with changed scope (S:C) indicates potential cross-tenant privilege issues. EPSS data not available; no public exploit identified at time of analysis, though the logic flaw is straightforward to trigger with valid low-privilege credentials.

RemediationAI

Upgrade to patched versions immediately: Keystone 25.0.1, 26.1.1, 27.0.1, or 28.0.1 depending on deployment branch. The upstream fix is available in OpenDev review https://review.opendev.org/958205 with backports to stable branches. For deployments unable to upgrade immediately, configure user_enabled_invert=True in keystone.conf under the [ldap] section as a temporary workaround, though this inverts the logic and requires LDAP schema compatibility testing. Alternatively, enable user_enabled_emulation configuration option. After patching, audit authentication logs for disabled LDAP accounts that successfully authenticated during the vulnerability window and review their activity for unauthorized access. Verify LDAP-sourced user account statuses are correctly synchronized post-upgrade. Consult security announcements at https://www.openwall.com/lists/oss-security/2026/04/14/9 for additional deployment-specific guidance.

Affected VersionsENISA

Keystone 27.0.0 <27.0.1
Keystone 8.0.0 <25.0.1
Keystone 28.0.0 <28.0.1
Keystone 26.0.0 <26.1.1

Affected Packages

pypi keystone fix: 25.0.1, 26.1.1, 27.0.1, 28.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenStack Keystone is the identity service component providing authentication and authorization for OpenStack cloud environments. The LDAP identity backend integrates with enterprise directory services for user management. The vulnerability exists in the UserApi class's _ldap_res_to_model method, which handles attribute mapping between LDAP responses and Keystone's internal user model. CWE-843 (Access of Resource Using Incompatible Type) describes the root cause: when user_enabled_invert configuration is False, the method fails to convert LDAP's user-enabled attribute (typically a string like 'TRUE' or 'FALSE') into Python boolean type. Python evaluates any non-empty string as truthy, so the string 'FALSE' from LDAP becomes True in Keystone's logic. The affected code path skips boolean conversion entirely, relying on raw LDAP string values. Affected products include Keystone versions 8.0.0-25.0.0, 26.0.0-26.1.0, 27.0.0, and 28.0.0 across multiple OpenStack releases (Victoria through 2024.2 Dalmatian).

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.7 HIGH
AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
Red Hat 7.7 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch released
Apr 16, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 14, 2026 - 20:16 nvd
HIGH 7.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OpenStack Keystone versions 8.0.0 through 28.0.0 contain a critical authentication bypass in LDAP identity backends that allows disabled user accounts to authenticate successfully, potentially enabling unauthorized access to cloud infrastructure and cross-tenant privilege escalation. Organizations using Keystone with LDAP authentication are at immediate risk of privilege abuse by deprovisioned or suspended users, requiring urgent mitigation until patches are released.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Set user_enabled_invert=True in Keystone LDAP backend configuration to invert disabled status logic; (2) Enforce LDAP attribute-based access controls requiring specific group membership for authentication; (3) Implement network segmentation to restrict Keystone API access to known administrative networks; (4) Enable enhanced audit logging of all authentication attempts and failed authorization events; (5) Conduct manual audit of recent LDAP-disabled accounts that retained active Keystone credentials.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy