CVE-2024-21583
JSON

4.1medium

github.com/gitpod-io/gitpod vulnerable to Cookie Tossing

Severity
4.1medium CVSS:3.1 by snyk
Exploit likelihood
0.60% (higher than 49% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-8pgc-65mj-53h5GO-2024-2997

Description

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.

Affected

Product or packageVersionsReported by
github.com/gitpod-io/gitpod/components/server/go/pkg/libbefore main-gha.27122CVE List
github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxybefore main-gha.27122CVE List
github.com/gitpod-io/gitpod/install/installer/pkg/components/authbefore main-gha.27122CVE List
github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-serverbefore main-gha.27122CVE List
github.com/gitpod-io/gitpod/install/installer/pkg/components/serverbefore main-gha.27122CVE List
@gitpod/gitpod-protocolbefore 0.1.5-main-gha.27122CVE List
github.com/gitpod-io/gitpod (Go)up to 0.8.0, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/gitpod-io/gitpod/components/server/go (Go)all versionsGo Vulnerability Database
github.com/gitpod-io/gitpod/components/ws-proxy (Go)all versionsGo Vulnerability Database
github.com/gitpod-io/gitpod/install/installer (Go)all versionsGo Vulnerability Database

All scores

snyk4.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P
GitHub4.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

Classification

CWE-15CWE-565

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

Go Vulnerability Database

CVE-2024-21583 in github.com/gitpod-io/gitpod.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/gitpod-io/gitpod before v0.1.5-main-gha.27122; github.com/gitpod-io/gitpod/components/server/go before main-gha.27122; github.com/gitpod-io/gitpod/components/ws-proxy before main-gha.27122; github.com/gitpod-io/gitpod/install/installer before main-gha.27122.

NVD (es)

Versiones del paquete github.com/gitpod-io/gitpod/components/server/go/pkg/lib antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/auth antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/server antes de main-gha.27122; Las versiones del paquete @gitpod/gitpod-protocol anteriores a 0.1.5-main-gha.27122 son vulnerables al lanzamiento de cookies debido a que falta un prefijo __Host- en la cookie de sesión _gitpod_io_jwt2_. Esto permite a un adversario que controla un subdominio establecer el valor de la cookie en el plano de control de Gitpod, que puede asignarse al propio JWT de un atacante para que las acciones específicas tomadas por la víctima (como conectar una nueva organización de Github) sean ejecutadas por La sesión de los atacantes.

References

https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSSERVERGOPKGLIB-7452074web
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODCOMPONENTSWSPROXYPKGPROXY-7452075web
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSAUTH-7452076web
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSPUBLICAPISERVER-7452077web
https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGITPODIOGITPODINSTALLINSTALLERPKGCOMPONENTSSERVER-7452078web
https://security.snyk.io/vuln/SNYK-JS-GITPODGITPODPROTOCOL-7452079web
https://app.safebase.io/portal/71ccd717-aa2d-4a1e-942e-c768d37e9e0c/preview?product=%5B%E2%80%A6%5D942e-c768d37e9e0c&tcuUid=1d505bda-9a38-4ca5-8724-052e6337f34dweb
https://github.com/gitpod-io/gitpod/pull/19973fix, web
https://github.com/gitpod-io/gitpod/commit/da1053e1013f27a56e6d3533aa251dbd241d0155fix, web
https://nvd.nist.gov/vuln/detail/CVE-2024-21583advisory
https://github.com/gitpod-io/gitpodpackage
https://pkg.go.dev/vuln/GO-2024-2997web

Sources

SourceRecordLicence
CVE ListCVE-2024-21583 changed 2024-10-31CVE Terms of Use
GitHub Advisory DatabaseGHSA-8pgc-65mj-53h5 changed 2024-10-31CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2997 changed 2024-09-06CC-BY-4.0
NVDCVE-2024-21583 changed 2026-06-17Public domain