CVE-2024-36106: Github.com/argoproj/argo cd Argo-cd Authenticated Users Can Enumerate Vulnerability

MODERATE
Advisory Identifier: GHSA-3cqf-953p-h5cp
CVSS 4.3
CWE-209
Published
Advisory Summary

CVE-2024-36106 is a MODERATE (CVSS 4.3) argo-cd authenticated users can enumerate vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Github.com/argoproj/argo cd libraries in the Go ecosystem. The issue involves argo-cd authenticated users can enumerate clusters by name. Remediation is available by upgrading affected packages to version 2.9.17, 2.10.12, 2.11.3.

CVE-2024-36106 at a Glance

CVE Identifier CVE-2024-36106
GHSA Identifier GHSA-3cqf-953p-h5cp
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Github.com/argoproj/argo cd
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-36106

To remediate this vulnerability, upgrade all affected Github.com/argoproj/argo cd 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/argoproj/argo-cd fixed: 2.9.17
Upgrade github.com/argoproj/argo-cd to 2.9.17
github.com/argoproj/argo-cd fixed: 2.10.12
Upgrade github.com/argoproj/argo-cd to 2.10.12
github.com/argoproj/argo-cd fixed: 2.11.3
Upgrade github.com/argoproj/argo-cd to 2.11.3
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/argoproj/argo-cd

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-36106, inspect your project dependencies for Github.com/argoproj/argo cd:

inspect dependencies for github.com/argoproj/argo-cd

Analyze the terminal output to locate any version of Github.com/argoproj/argo cd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.17), 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Github.com/argoproj/argo cd, 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 It’s possible for authenticated users to enumerate clusters by name by inspecting error messages: ``` $ curl -k 'https://localhost:8080/api/v1/clusters/in-cluster?id.type=name' -H "Authorization: Bearer $token" {"error":"permission denied: clusters, get, , sub: alice, iat: 2022-11-04T20:25:44Z","code":7,"message":"permission denied: clusters, get, , sub: alice, iat: 2022-11-04T20:25:44Z"}⏎ $ curl -k 'https://localhost:8080/api/v1/clusters/does-not-exist?id.type=name' -H "Authorizati on: Bearer $token" {"error":"permission denied","code":7,"message":"permission denied"} ``` It’s also possible to enumerate the names of projects with project-scoped clusters if you know the names of the clusters. ``` curl -k 'https://localhost:8080/api/v1/clusters/in-cluster-project?id.type=name' -H "Authorization: Bearer $token" {"error":"permission denied: clusters, get, default/, sub: alice, iat: 2022-11-04T20:25:44Z","code":7,"message":"permission denied: clusters, get, default/, sub: alice, iat: 2022-11-04T20:25:44Z"} curl -k 'https://localhost:8080/api/v1/clusters/does-not-exist?id.type=name' -H "Authorization: Bearer $token" {"error":"permission denied","code":7,"message":"permission denied"} ``` ### Patches A patch for this vulnerability has been released in the following Argo CD versions: v2.11.3 v2.10.12 v2.9.17 ### For more information If you have any questions or comments about this advisory: Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions) Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd Credits This vulnerability was found & reported by @crenshaw-dev (Michael Crenshaw) The Argo team would like to thank these contributors for their responsible disclosure and constructive communications during the resolve of this issue

CVE-2024-36106 Affected Github.com/argoproj/argo cd Versions

3 component(s)
Fixed Versions:
2.9.172.10.122.11.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/argoproj/argo-cd
Go
≥ 0.11.0
< 2.9.17
2.9.17
github.com/argoproj/argo-cd
Go
≥ 2.10.0
< 2.10.12
2.10.12
github.com/argoproj/argo-cd
Go
≥ 2.11.0
< 2.11.3
2.11.3

References

Frequently Asked Questions

What is CVE-2024-36106?
CVE-2024-36106 is a security vulnerability in Github.com/argoproj/argo cd involving Argo-cd authenticated users can enumerate clusters by name under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Github.com/argoproj/argo cd versions are affected?
Affected versions include releases prior to 2.9.17, 2.10.12, 2.11.3 across affected packages: github.com/argoproj/argo-cd.
What version fixes CVE-2024-36106?
Upgrading to 2.9.17, 2.10.12, 2.11.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/argoproj/argo-cd affected?
Yes, github.com/argoproj/argo-cd is affected in releases prior to 2.9.17, 2.10.12, 2.11.3. Upgrade your dependency to 2.9.17, 2.10.12, 2.11.3 or later.
What is the CVSS score of CVE-2024-36106?
CVE-2024-36106 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-36106?
CVE-2024-36106 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check Go dependencies for CVE-2024-36106?
Run the dependency tree command: 'inspect dependencies for github.com/argoproj/argo-cd'. 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-3cqf-953p-h5cp",
  "modified" : "2024-06-06T19:04:54Z",
  "published" : "2024-06-06T19:04:54Z",
  "aliases" : [ "CVE-2024-36106" ],
  "summary" : "Argo-cd authenticated users can enumerate clusters by name",
  "details" : "### Impact\nIt’s possible for authenticated users to enumerate clusters by name by inspecting error messages:\n\n```\n$ curl -k 'https://localhost:8080/api/v1/clusters/in-cluster?id.type=name' -H \"Authorization: \nBearer $token\"\n{\"error\":\"permission denied: clusters, get, , sub: alice, iat: 2022-11-04T20:25:44Z\",\"code\":7,\"message\":\"permission denied: clusters, get, , sub: alice, iat: 2022-11-04T20:25:44Z\"}⏎                                 \n                                   \n$ curl -k 'https://localhost:8080/api/v1/clusters/does-not-exist?id.type=name' -H \"Authorizati\non: Bearer $token\"\n{\"error\":\"permission denied\",\"code\":7,\"message\":\"permission denied\"}\n```\n\nIt’s also possible to enumerate the names of projects with project-scoped clusters if you know the names of the clusters.\n```\ncurl -k 'https://localhost:8080/api/v1/clusters/in-cluster-project?id.type=name' -H \"Authorization: Bearer $token\"\n{\"error\":\"permission denied: clusters, get, default/, sub: alice, iat: 2022-11-04T20:25:44Z\",\"code\":7,\"message\":\"permission denied: clusters, get, default/, sub: alice, iat: 2022-11-04T20:25:44Z\"}\n\ncurl -k 'https://localhost:8080/api/v1/clusters/does-not-exist?id.type=name' -H \"Authorization: Bearer $token\"\n{\"error\":\"permission denied\",\"code\":7,\"message\":\"permission denied\"}\n```\n\n### Patches\nA patch for this vulnerability has been released in the following Argo CD versions:\n\nv2.11.3\nv2.10.12\nv2.9.17\n\n### For more information\nIf you have any questions or comments about this advisory:\n\nOpen an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\nJoin us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd\n\nCredits\nThis vulnerability was found & reported by @crenshaw-dev (Michael Crenshaw)\n\nThe Argo team would like to thank these contributors for their responsible disclosure and constructive communications during the resolve of this issue\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "2.9.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.10.0"
      }, {
        "fixed" : "2.10.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-cd/security/advisories/GHSA-3cqf-953p-h5cp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-cd/commit/c2647055c261a550e5da075793260f6524e65ad9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/argoproj/argo-cd"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-06T19:04:54Z",
    "nvd_published_at" : "2024-06-06T15:15:45Z"
  }
}