Vulnerabilities in pkg:golang/github.com/gitpod-io/gitpod

PACKAGE
Advisory Identifier: GHSA-8pgc-65mj-53h5
Advisory Summary

CVE-2024-21583 is a MODERATE (CVSS 4.1) github.com/gitpod-io/gitpod vulnerable to cookie tossing vulnerability (CWE-15: External Control of System or Configuration Setting) affecting Github.com/gitpod io/gitpod libraries in the Go ecosystem. The issue involves github.com/gitpod-io/gitpod vulnerable to cookie tossing. Remediation is available in the latest vendor maintenance releases.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/gitpod-io/gitpod

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/gitpod-io/gitpod. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8pgc-65mj-53h5 CVE-2024-21583 MODERATE github.com/gitpod-io/gitpod vulnerable to Cookie Tossing
GHSA-gqx9-h3w2-fprg CVE-2023-32766 MODERATE Gitpod vulnerable to Cross-site Scripting

CVE-2024-21583 at a Glance

CVE Identifier CVE-2024-21583
GHSA Identifier GHSA-8pgc-65mj-53h5
Severity MODERATE
CVSS v3.1 Base Score 4.1
CWE Classification CWE-15: External Control of System or Configuration Setting
Affected Product Github.com/gitpod io/gitpod
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.1

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:C/C:L/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 Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-21583

To remediate this vulnerability, upgrade all affected Github.com/gitpod io/gitpod 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/gitpod-io/gitpod fixed: Latest secure release
Upgrade github.com/gitpod-io/gitpod to Latest secure release
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/gitpod-io/gitpod

How to Check if You Are Affected

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

inspect dependencies for github.com/gitpod-io/gitpod

Analyze the terminal output to locate any version of Github.com/gitpod io/gitpod in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-15: External Control of System or Configuration Setting, where one or more system settings or configuration elements can be externally controlled by a user. In Github.com/gitpod io/gitpod, 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

Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/auth before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/server before main-gha.27122; versions of the package @gitpod/gitpod-protocol before 0.1.5-main-gha.27122 are vulnerable to Cookie Tossing due to a missing __Host- prefix on the _gitpod_io_jwt2_ session cookie. This allows an adversary who controls a subdomain to set the value of the cookie on the Gitpod control plane, which can be assigned to an attacker’s own JWT so that specific actions taken by the victim (such as connecting a new Github organization) are actioned by the attackers session.

CVE-2024-21583 Affected Github.com/gitpod io/gitpod Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gitpod-io/gitpod
Go
≤ 0.8.0

References

NVD — CVE-2024-21583 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-21583
Github.com/gitpod io/gitpod Source Repository REPOSITORY
https://github.com/gitpod-io/gitpod/pull/19973
Security Fix Commit FIX COMMIT
https://github.com/gitpod-io/gitpod/commit/da1053e1013f27a56e6d3533aa251dbd241d0155
app.safebase.io/portal/71ccd717-aa2... WEB
https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=%5B%E2%80%A6%5D942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d
Github.com/gitpod io/gitpod Source Repository REPOSITORY
https://github.com/gitpod-io/gitpod
pkg.go.dev/vuln/go-2024-2997 WEB
https://pkg.go.dev/vuln/GO-2024-2997
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSSERVERGOPKGLIB-7452074
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSWSPROXYPKGPROXY-7452075
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSAUTH-7452076
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSPUBLICAPISERVER-7452077
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSSERVER-7452078
Github.com/gitpod io/gitpod Security Information SECURITY
https://security.snyk.io/vuln/SNYK-JS-GITPODGITPODPROTOCOL-7452079

Frequently Asked Questions

What is CVE-2024-21583?
CVE-2024-21583 is a security vulnerability in Github.com/gitpod io/gitpod involving github.com/gitpod-io/gitpod vulnerable to Cookie Tossing under CWE-15: External Control of System or Configuration Setting.
Which Github.com/gitpod io/gitpod versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/gitpod-io/gitpod.
What version fixes CVE-2024-21583?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gitpod-io/gitpod affected?
Yes, github.com/gitpod-io/gitpod is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-21583?
CVE-2024-21583 has a CVSS v3.1 base score of 4.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-21583?
CVE-2024-21583 is classified under CWE-15: External Control of System or Configuration Setting (One or more system settings or configuration elements can be externally controlled by a user.).
How can I check Go dependencies for CVE-2024-21583?
Run the dependency tree command: 'inspect dependencies for github.com/gitpod-io/gitpod'. 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-8pgc-65mj-53h5",
  "modified" : "2024-10-31T17:02:51Z",
  "published" : "2024-07-19T06:31:13Z",
  "aliases" : [ "CVE-2024-21583" ],
  "summary" : "github.com/gitpod-io/gitpod vulnerable to Cookie Tossing",
  "details" : "Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/auth before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/server before main-gha.27122; versions of the package @gitpod/gitpod-protocol before 0.1.5-main-gha.27122 are vulnerable to Cookie Tossing due to a missing __Host- prefix on the _gitpod_io_jwt2_ session cookie. This allows an adversary who controls a subdomain to set the value of the cookie on the Gitpod control plane, which can be assigned to an attacker’s own JWT so that specific actions taken by the victim (such as connecting a new Github organization) are actioned by the attackers session.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gitpod-io/gitpod"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21583"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gitpod-io/gitpod/pull/19973"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gitpod-io/gitpod/commit/da1053e1013f27a56e6d3533aa251dbd241d0155"
  }, {
    "type" : "WEB",
    "url" : "https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=%5B%E2%80%A6%5D942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gitpod-io/gitpod"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2997"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSSERVERGOPKGLIB-7452074"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSWSPROXYPKGPROXY-7452075"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSAUTH-7452076"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSPUBLICAPISERVER-7452077"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSSERVER-7452078"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-GITPODGITPODPROTOCOL-7452079"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-15", "CWE-565" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-06T22:05:52Z",
    "nvd_published_at" : "2024-07-19T05:15:10Z"
  }
}