CVE-2024-39683: Github.com/zitadel/zitadel ZITADEL Vulnerable To Session Information Vulnerability

MODERATE
Advisory Identifier: GHSA-cvw9-c57h-3397
CVSS 5.7
CWE-200
Published
Advisory Summary

CVE-2024-39683 is a MODERATE (CVSS 5.7) zitadel vulnerable to session information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves zitadel vulnerable to session information leakage. Remediation is available by upgrading affected packages to version 2.53.8, 2.54.5, 2.55.1.

CVE-2024-39683 at a Glance

CVE Identifier CVE-2024-39683
GHSA Identifier GHSA-cvw9-c57h-3397
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Github.com/zitadel/zitadel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.7

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

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

How to Fix CVE-2024-39683

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.8
Upgrade github.com/zitadel/zitadel to 2.53.8
github.com/zitadel/zitadel fixed: 2.54.5
Upgrade github.com/zitadel/zitadel to 2.54.5
github.com/zitadel/zitadel fixed: 2.55.1
Upgrade github.com/zitadel/zitadel to 2.55.1
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-39683, 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.8), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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 provides users the ability to list all user sessions of the current user agent (browser) by API and in the Console UI. Due to a missing check, user sessions without that information (e.g. when created though the session service) were incorrectly listed exposing potentially other user's sessions. Note that the Login UI was never affected and there was no possibility to take over such a session. ### Patches 2.x versions are fixed on >= [2.55.1](https://github.com/zitadel/zitadel/releases/tag/v2.55.1) 2.54.x versions are fixed on >= [2.54.5](https://github.com/zitadel/zitadel/releases/tag/v2.54.5) 2.53.x versions are fixed on >= [2.53.8](https://github.com/zitadel/zitadel/releases/tag/v2.53.8) ZITADEL recommends upgrading to the latest versions available in due course. ### Workarounds There is no workaround since a patch is already available. ### References - https://github.com/zitadel/zitadel/pull/8231 - https://discord.com/channels/927474939156643850/1254096852937347153 - https://github.com/zitadel/zitadel/issues/8213 ### 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 @cybertransformer, @Avolicious, @AmirhoseinBrz and @srividyaj for finding and reporting the vulnerability.

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

3 component(s)
Fixed Versions:
2.53.82.54.52.55.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
≥ 2.0.0
< 2.53.8
2.53.8
github.com/zitadel/zitadel
Go
≥ 2.54.0
< 2.54.5
2.54.5
github.com/zitadel/zitadel
Go
≥ 2.55.0
< 2.55.1
2.55.1

References

Frequently Asked Questions

What is CVE-2024-39683?
CVE-2024-39683 is a security vulnerability in Github.com/zitadel/zitadel involving ZITADEL Vulnerable to Session Information Leakage under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Github.com/zitadel/zitadel versions are affected?
Affected versions include releases prior to 2.53.8, 2.54.5, 2.55.1 across affected packages: github.com/zitadel/zitadel.
What version fixes CVE-2024-39683?
Upgrading to 2.53.8, 2.54.5, 2.55.1 (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.8, 2.54.5, 2.55.1. Upgrade your dependency to 2.53.8, 2.54.5, 2.55.1 or later.
What is the CVSS score of CVE-2024-39683?
CVE-2024-39683 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-39683?
CVE-2024-39683 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2024-39683?
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-cvw9-c57h-3397",
  "modified" : "2024-07-09T21:56:02Z",
  "published" : "2024-07-05T20:03:55Z",
  "aliases" : [ "CVE-2024-39683" ],
  "summary" : "ZITADEL Vulnerable to Session Information Leakage",
  "details" : "### Impact\n\nZITADEL provides users the ability to list all user sessions of the current user agent (browser) by API and in the Console UI.\n\nDue to a missing check, user sessions without that information (e.g. when created though the session service) were incorrectly listed exposing potentially other user's sessions.\n\nNote that the Login UI was never affected and there was no possibility to take over such a session.\n\n### Patches\n\n2.x versions are fixed on >= [2.55.1](https://github.com/zitadel/zitadel/releases/tag/v2.55.1)\n2.54.x versions are fixed on >= [2.54.5](https://github.com/zitadel/zitadel/releases/tag/v2.54.5)\n2.53.x versions are fixed on >= [2.53.8](https://github.com/zitadel/zitadel/releases/tag/v2.53.8)\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### References\n\n- https://github.com/zitadel/zitadel/pull/8231\n- https://discord.com/channels/927474939156643850/1254096852937347153\n- https://github.com/zitadel/zitadel/issues/8213\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 @cybertransformer, @Avolicious, @AmirhoseinBrz and @srividyaj for finding and reporting the vulnerability.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/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.0.0"
      }, {
        "fixed" : "2.53.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.53.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.54.0"
      }, {
        "fixed" : "2.54.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.54.4"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.55.0"
      }, {
        "fixed" : "2.55.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-cvw9-c57h-3397"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39683"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/issues/8213"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/pull/8231"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/4a262e42abac2208b02fefaf68ba1a5121649f04"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/c2093ce01507ca8fc811609ff5d391693360c3da"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/d04f208486a418a45b884b9ca8433e5ad9790d73"
  }, {
    "type" : "WEB",
    "url" : "https://discord.com/channels/927474939156643850/1254096852937347153"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.53.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.54.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.55.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:03:55Z",
    "nvd_published_at" : "2024-07-03T20:15:04Z"
  }
}