CVE-2024-41952: Github.com/zitadel/zitadel ZITADEL "ignoring Unknown Usernames" Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-567v-6hmg-6qg7
CVSS 5.3
CWE-203
Published
Advisory Summary

CVE-2024-41952 is a MODERATE (CVSS 5.3) zitadel "ignoring unknown usernames" vulnerability vulnerability (CWE-203: Observable Discrepancy) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves zitadel "ignoring unknown usernames" vulnerability. Remediation is available by upgrading affected packages to version 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122357-a1d24353db4d, 1.80.0-v2.20.0.20240731122357-a1d24353db4d.

CVE-2024-41952 at a Glance

CVE Identifier CVE-2024-41952
GHSA Identifier GHSA-567v-6hmg-6qg7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-203: Observable Discrepancy
Affected Product Github.com/zitadel/zitadel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-41952

To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/zitadel/zitadel fixed: 2.53.9
Upgrade github.com/zitadel/zitadel to 2.53.9
github.com/zitadel/zitadel fixed: 2.54.8
Upgrade github.com/zitadel/zitadel to 2.54.8
github.com/zitadel/zitadel fixed: 2.55.5
Upgrade github.com/zitadel/zitadel to 2.55.5
github.com/zitadel/zitadel fixed: 2.56.2
Upgrade github.com/zitadel/zitadel to 2.56.2
github.com/zitadel/zitadel fixed: 2.57.1
Upgrade github.com/zitadel/zitadel to 2.57.1
github.com/zitadel/zitadel fixed: 2.58.1
Upgrade github.com/zitadel/zitadel to 2.58.1
github.com/zitadel/zitadel fixed: 0.0.0-20240731122357-a1d24353db4d
Upgrade github.com/zitadel/zitadel to 0.0.0-20240731122357-a1d24353db4d
github.com/zitadel/zitadel fixed: 1.80.0-v2.20.0.20240731122357-a1d24353db4d
Upgrade github.com/zitadel/zitadel to 1.80.0-v2.20.0.20240731122357-a1d24353db4d
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/zitadel/zitadel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-41952, inspect your project dependencies for Github.com/zitadel/zitadel:

inspect dependencies for github.com/zitadel/zitadel

Analyze the terminal output to locate any version of Github.com/zitadel/zitadel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.53.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Github.com/zitadel/zitadel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact ZITADEL administrators can enable a setting called "Ignoring unknown usernames" which helps mitigate attacks that try to guess/enumerate usernames. If enabled, ZITADEL will show the password prompt even if the user doesn't exist and report "Username or Password invalid". Due to a implementation change to prevent deadlocks calling the database, the flag would not be correctly respected in all cases and an attacker would gain information if an account exist within ZITADEL, since the error message shows "object not found" instead of the generic error message. ### Patches 2.x versions are fixed on >= [2.58.1](https://github.com/zitadel/zitadel/releases/tag/v2.58.1) 2.57.x versions are fixed on >= [2.57.1](https://github.com/zitadel/zitadel/releases/tag/v2.57.1) 2.56.x versions are fixed on >= [2.56.2](https://github.com/zitadel/zitadel/releases/tag/v2.56.2) 2.55.x versions are fixed on >= [2.55.5](https://github.com/zitadel/zitadel/releases/tag/v2.55.5) 2.54.x versions are fixed on >= [2.54.8](https://github.com/zitadel/zitadel/releases/tag/v2.54.8) 2.53.x versions are fixed on >= [2.53.9](https://github.com/zitadel/zitadel/releases/tag/v2.53.9) ZITADEL recommends upgrading to the latest versions available in due course. ### Workarounds There is no workaround since a patch is already available. ### Questions If you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)

CVE-2024-41952 Affected Github.com/zitadel/zitadel Versions

8 component(s)
Fixed Versions:
2.53.92.54.82.55.52.56.22.57.12.58.10.0.0-20240731122357-a1d24353db4d1.80.0-v2.20.0.20240731122357-a1d24353db4d
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
≥ 2.53.0
< 2.53.9
2.53.9
github.com/zitadel/zitadel
Go
≥ 2.54.0
< 2.54.8
2.54.8
github.com/zitadel/zitadel
Go
≥ 2.55.0
< 2.55.5
2.55.5
github.com/zitadel/zitadel
Go
≥ 2.56.0
< 2.56.2
2.56.2
github.com/zitadel/zitadel
Go
≥ 2.57.0
< 2.57.1
All 1 versions
2.57.0
2.57.1
github.com/zitadel/zitadel
Go
≥ 2.58.0
< 2.58.1
All 1 versions
2.58.0
2.58.1
github.com/zitadel/zitadel
Go
≥ 0.0.0-20230609131415-dafa8ab4dfe8
< 0.0.0-20240731122357-a1d24353db4d
0.0.0-20240731122357-a1d24353db4d
github.com/zitadel/zitadel
Go
≥ 1.80.0-v2.20.0.20230609131415-dafa8ab4dfe8
< 1.80.0-v2.20.0.20240731122357-a1d24353db4d
1.80.0-v2.20.0.20240731122357-a1d24353db4d

References

GitHub Advisory / Wiki ADVISORY
https://github.com/zitadel/zitadel/security/advisories/GHSA-567v-6hmg-6qg7
NVD — CVE-2024-41952 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-41952
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/0ab0c645ef914298c343fa39cccb1290aba48bf6
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/3c7d12834e32426416235b9e3374be0f4b9380b8
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/5c2526c98aafd1ba206be2fa4291b1d24c384f6d
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/8565d24fd8df5bd35294313cfbfcc2e15aea20e9
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/b0e71a81ef39667ce2a149ce037c1ca0edbe059d
Security Fix Commit FIX COMMIT
https://github.com/zitadel/zitadel/commit/fc1d415b8db5b8d481bb65206ce3fc944c0eecea
Github.com/zitadel/zitadel Source Repository REPOSITORY
https://github.com/zitadel/zitadel
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.53.9
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.54.8
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.55.5
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.56.2
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.57.1
Github.com/zitadel/zitadel Release RELEASE
https://github.com/zitadel/zitadel/releases/tag/v2.58.1
pkg.go.dev/vuln/go-2024-3014 WEB
https://pkg.go.dev/vuln/GO-2024-3014

Frequently Asked Questions

What is CVE-2024-41952?
CVE-2024-41952 is a security vulnerability in Github.com/zitadel/zitadel involving ZITADEL "ignoring unknown usernames" vulnerability under CWE-203: Observable Discrepancy.
Which Github.com/zitadel/zitadel versions are affected?
Affected versions include releases prior to 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122357-a1d24353db4d, 1.80.0-v2.20.0.20240731122357-a1d24353db4d across affected packages: github.com/zitadel/zitadel.
What version fixes CVE-2024-41952?
Upgrading to 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122357-a1d24353db4d, 1.80.0-v2.20.0.20240731122357-a1d24353db4d (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/zitadel/zitadel affected?
Yes, github.com/zitadel/zitadel is affected in releases prior to 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122357-a1d24353db4d, 1.80.0-v2.20.0.20240731122357-a1d24353db4d. Upgrade your dependency to 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122357-a1d24353db4d, 1.80.0-v2.20.0.20240731122357-a1d24353db4d or later.
What is the CVSS score of CVE-2024-41952?
CVE-2024-41952 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-41952?
CVE-2024-41952 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check Go dependencies for CVE-2024-41952?
Run the dependency tree command: 'inspect dependencies for github.com/zitadel/zitadel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-567v-6hmg-6qg7",
  "modified" : "2025-07-08T16:39:58Z",
  "published" : "2024-07-31T21:02:52Z",
  "aliases" : [ "CVE-2024-41952" ],
  "summary" : "ZITADEL \"ignoring unknown usernames\" vulnerability",
  "details" : "### Impact\n\nZITADEL administrators can enable a setting called \"Ignoring unknown usernames\" which helps mitigate attacks that try to guess/enumerate usernames. If enabled, ZITADEL will show the password prompt even if the user doesn't exist and report \"Username or Password invalid\".\nDue to a implementation change to prevent deadlocks calling the database, the flag would not be correctly respected in all cases and an attacker would gain information if an account exist within ZITADEL, since the error message shows \"object not found\" instead of the generic error message.\n\n### Patches\n\n2.x versions are fixed on >= [2.58.1](https://github.com/zitadel/zitadel/releases/tag/v2.58.1)\n2.57.x versions are fixed on >= [2.57.1](https://github.com/zitadel/zitadel/releases/tag/v2.57.1)\n2.56.x versions are fixed on >= [2.56.2](https://github.com/zitadel/zitadel/releases/tag/v2.56.2)\n2.55.x versions are fixed on >= [2.55.5](https://github.com/zitadel/zitadel/releases/tag/v2.55.5)\n2.54.x versions are fixed on >= [2.54.8](https://github.com/zitadel/zitadel/releases/tag/v2.54.8)\n2.53.x versions are fixed on >= [2.53.9](https://github.com/zitadel/zitadel/releases/tag/v2.53.9)\n\nZITADEL recommends upgrading to the latest versions available in due course.\n\n### Workarounds\n\nThere is no workaround since a patch is already available.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.53.0"
      }, {
        "fixed" : "2.53.9"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.53.8"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.54.0"
      }, {
        "fixed" : "2.54.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.54.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.55.0"
      }, {
        "fixed" : "2.55.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.55.4"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.56.0"
      }, {
        "fixed" : "2.56.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.56.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.57.0"
      }, {
        "fixed" : "2.57.1"
      } ]
    } ],
    "versions" : [ "2.57.0" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.58.0"
      }, {
        "fixed" : "2.58.1"
      } ]
    } ],
    "versions" : [ "2.58.0" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0-20230609131415-dafa8ab4dfe8"
      }, {
        "fixed" : "0.0.0-20240731122357-a1d24353db4d"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.80.0-v2.20.0.20230609131415-dafa8ab4dfe8"
      }, {
        "fixed" : "1.80.0-v2.20.0.20240731122357-a1d24353db4d"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-567v-6hmg-6qg7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41952"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/0ab0c645ef914298c343fa39cccb1290aba48bf6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/3c7d12834e32426416235b9e3374be0f4b9380b8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/5c2526c98aafd1ba206be2fa4291b1d24c384f6d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/8565d24fd8df5bd35294313cfbfcc2e15aea20e9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/b0e71a81ef39667ce2a149ce037c1ca0edbe059d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/fc1d415b8db5b8d481bb65206ce3fc944c0eecea"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.53.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.54.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.55.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.56.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.57.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.58.1"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3014"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-31T21:02:52Z",
    "nvd_published_at" : "2024-07-31T17:15:10Z"
  }
}