CVE-2024-49757: Github.com/zitadel/zitadel User Registration Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-3rmw-76m6-4gjc
CVSS 7.5
CWE-287
Published
Advisory Summary

CVE-2024-49757 is a HIGH (CVSS 7.5) user registration bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves user registration bypass in zitadel. Remediation is available by upgrading affected packages to version 2.63.5, 2.62.7, 2.61.4, 2.60.4, 2.59.5, 2.58.7.

CVE-2024-49757 at a Glance

CVE Identifier CVE-2024-49757
GHSA Identifier GHSA-3rmw-76m6-4gjc
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/zitadel/zitadel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:H/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-49757

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.63.5
Upgrade github.com/zitadel/zitadel to 2.63.5
github.com/zitadel/zitadel fixed: 2.62.7
Upgrade github.com/zitadel/zitadel to 2.62.7
github.com/zitadel/zitadel fixed: 2.61.4
Upgrade github.com/zitadel/zitadel to 2.61.4
github.com/zitadel/zitadel fixed: 2.60.4
Upgrade github.com/zitadel/zitadel to 2.60.4
github.com/zitadel/zitadel fixed: 2.59.5
Upgrade github.com/zitadel/zitadel to 2.59.5
github.com/zitadel/zitadel fixed: 2.58.7
Upgrade github.com/zitadel/zitadel to 2.58.7
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-49757, 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.63.5), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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 allows administrators to disable the user self-registration. Due to a missing security check in versions prior to 2.63.4, disabling the "User Registration allowed" option only hid the registration button on the login page. Users could bypass this restriction by directly accessing the registration URL (/ui/login/loginname) and register a user that way. ### Patches 2.x versions are fixed on >= [2.64.0](https://github.com/zitadel/zitadel/releases/tag/v2.64.0) 2.63.x versions are fixed on >= [2.63.5](https://github.com/zitadel/zitadel/releases/tag/v2.63.5) 2.62.x versions are fixed on >= [2.62.7](https://github.com/zitadel/zitadel/releases/tag/v2.62.7) 2.61.x versions are fixed on >= [2.61.4](https://github.com/zitadel/zitadel/releases/tag/v2.61.4) 2.60.x versions are fixed on >= [2.60.4](https://github.com/zitadel/zitadel/releases/tag/v2.60.4) 2.59.x versions are fixed on >= [2.59.5](https://github.com/zitadel/zitadel/releases/tag/v2.59.5) 2.58.x versions are fixed on >= [2.58.7](https://github.com/zitadel/zitadel/releases/tag/v2.58.7) ### Workarounds Updating to the patched version is the recommended solution. ### Questions If you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com) ### Credits Thanks to @sevensolutions and @evilgensec for disclosing this!

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

6 component(s)
Fixed Versions:
2.63.52.62.72.61.42.60.42.59.52.58.7
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
≥ 2.63.0
< 2.63.5
2.63.5
github.com/zitadel/zitadel
Go
≥ 2.62.0
< 2.62.7
2.62.7
github.com/zitadel/zitadel
Go
≥ 2.61.0
< 2.61.4
2.61.4
github.com/zitadel/zitadel
Go
≥ 2.60.0
< 2.60.4
2.60.4
github.com/zitadel/zitadel
Go
≥ 2.59.0
< 2.59.5
2.59.5
github.com/zitadel/zitadel
Go
< 2.58.7
2.58.7

References

Frequently Asked Questions

What is CVE-2024-49757?
CVE-2024-49757 is a security vulnerability in Github.com/zitadel/zitadel involving User Registration Bypass in Zitadel under CWE-287: Improper Authentication.
Which Github.com/zitadel/zitadel versions are affected?
Affected versions include releases prior to 2.63.5, 2.62.7, 2.61.4, 2.60.4, 2.59.5, 2.58.7 across affected packages: github.com/zitadel/zitadel.
What version fixes CVE-2024-49757?
Upgrading to 2.63.5, 2.62.7, 2.61.4, 2.60.4, 2.59.5, 2.58.7 (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.63.5, 2.62.7, 2.61.4, 2.60.4, 2.59.5, 2.58.7. Upgrade your dependency to 2.63.5, 2.62.7, 2.61.4, 2.60.4, 2.59.5, 2.58.7 or later.
What is the CVSS score of CVE-2024-49757?
CVE-2024-49757 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-49757?
CVE-2024-49757 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2024-49757?
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-3rmw-76m6-4gjc",
  "modified" : "2024-10-25T19:30:14Z",
  "published" : "2024-10-25T19:30:14Z",
  "aliases" : [ "CVE-2024-49757" ],
  "summary" : "User Registration Bypass in Zitadel",
  "details" : "### Impact\nZitadel allows administrators to disable the user self-registration. Due to a missing security check in versions prior to 2.63.4, disabling the \"User Registration allowed\" option only hid the registration button on the login page. Users could bypass this restriction by directly accessing the registration URL (/ui/login/loginname) and register a user that way.\n\n### Patches\n\n2.x versions are fixed on >= [2.64.0](https://github.com/zitadel/zitadel/releases/tag/v2.64.0)\n2.63.x versions are fixed on >= [2.63.5](https://github.com/zitadel/zitadel/releases/tag/v2.63.5)\n2.62.x versions are fixed on >= [2.62.7](https://github.com/zitadel/zitadel/releases/tag/v2.62.7)\n2.61.x versions are fixed on >= [2.61.4](https://github.com/zitadel/zitadel/releases/tag/v2.61.4)\n2.60.x versions are fixed on >= [2.60.4](https://github.com/zitadel/zitadel/releases/tag/v2.60.4)\n2.59.x versions are fixed on >= [2.59.5](https://github.com/zitadel/zitadel/releases/tag/v2.59.5)\n2.58.x versions are fixed on >= [2.58.7](https://github.com/zitadel/zitadel/releases/tag/v2.58.7)\n\n### Workarounds\nUpdating to the patched version is the recommended solution.\n\n### Questions\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n### Credits\nThanks to @sevensolutions and @evilgensec for disclosing this!\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.63.0"
      }, {
        "fixed" : "2.63.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.62.0"
      }, {
        "fixed" : "2.62.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.61.0"
      }, {
        "fixed" : "2.61.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.60.0"
      }, {
        "fixed" : "2.60.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.59.0"
      }, {
        "fixed" : "2.59.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.58.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-3rmw-76m6-4gjc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-49757"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.58.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.59.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.60.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.61.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.62.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.63.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.64.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-25T19:30:14Z",
    "nvd_published_at" : "2024-10-25T15:15:18Z"
  }
}