CVE-2021-38155
Python vulnerability analysis and mitigation

Overview

OpenStack Keystone versions 10.x through 16.x before 16.0.2, 17.x before 17.0.1, 18.x before 18.0.1, and 19.x before 19.0.1 contained a vulnerability (CVE-2021-38155) related to information disclosure during account locking. The vulnerability was discovered by Samuel de Medeiros Queiroz from Oi Cloud and was publicly disclosed on August 10, 2021. The issue specifically affects deployments that have enabled the security_compliance.lockout_failure_attempts feature (OpenStack Advisory).

Technical details

The vulnerability exists in the PCI DSS account locking feature implementation. When an authentication attempt fails multiple times for a user account, the system would return an error message containing sensitive information, including the account's UUID. This implementation flaw allows unauthenticated actors to confirm the existence of accounts and obtain their corresponding UUIDs. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability enables two primary attack vectors: First, attackers can confirm the existence of user accounts by attempting authentication until the lockout threshold is reached, as the API response changes to indicate the account is locked. Second, attackers can obtain user account UUIDs through the lockout error messages, which could potentially be leveraged for other unrelated attacks (OpenStack Advisory, Launchpad Bug).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: 16.0.2, 17.0.1, 18.0.1, and 19.0.1. The fix modifies the system to hide the AccountLocked exception from end users and instead return a generic Unauthorized error, preventing information disclosure while maintaining the account locking functionality. For deployments that cannot immediately update, the alternative is to disable the security_compliance.lockout_failure_attempts feature (Launchpad Bug).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-66hx-chf7-3332HIGH8.8
  • PythonPython
  • pyload-ng
NoNoApr 14, 2026
CVE-2026-40192HIGH8.7
  • PythonPython
  • pillow
NoYesApr 15, 2026
CVE-2026-40347MEDIUM5.3
  • PythonPython
  • python-multipart
NoYesApr 15, 2026
GHSA-jj6c-8h6c-hppxMEDIUM4.8
  • PythonPython
  • pypdf
NoYesApr 15, 2026
GHSA-fj52-5g4h-gmq8LOW2.9
  • PythonPython
  • pyload-ng
NoNoApr 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management