8.8high
Cross-site WebSocket hijacking vulnerability in the Jenkins CLI
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 67.2% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- jenkins
- Also known as
- GHSA-53ph-2r2x-vqw8BIT-JENKINS-2024-23898
Description
Jenkins 2.217 through 2.441 (both inclusive), LTS 2.222.1 through 2.426.2 (both inclusive) does not perform origin validation of requests made through the CLI WebSocket endpoint, resulting in a cross-site WebSocket hijacking (CSWSH) vulnerability, allowing attackers to execute CLI commands on the Jenkins controller.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Jenkins Project Jenkins | Not specified Not affected: before 2.217, from 2.442 before *, from 2.426.3 before 2.426.*, from 2.440.1 before 2.440.* | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | from 2.217 before 2.426.3, from 2.427 before 2.442, 2.441 | GitHub Advisory Database |
| jenkins jenkins | from 2.217 up to 2.441, from 2.222.1 up to 2.426.2 | NVD |
| jenkins (Bitnami) | from 2.217.0 before 2.452.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Jenkins 2.217 through 2.441 (both inclusive), LTS 2.222.1 through 2.426.2 (both inclusive) does not perform origin validation of requests made through the CLI WebSocket endpoint, resulting in a cross-site WebSocket hijacking (CSWSH) vulnerability, allowing attackers to execute CLI commands on the Jenkins controller.
GitHub Advisory Database
Jenkins has a built-in command line interface (CLI) to access Jenkins from a script or shell environment. Since Jenkins 2.217 and LTS 2.222.1, one of the ways to communicate with the CLI is through a WebSocket endpoint. This endpoint relies on the default Jenkins web request authentication functionality, like HTTP Basic authentication with API tokens, or session cookies. This endpoint is enabled when running on a version of Jetty for which Jenkins supports WebSockets. This is the case when using the provided native installers, packages, or the Docker containers, as well as when running Jenkins with the command java -jar jenkins.war.
Jenkins 2.217 through 2.441 (both inclusive), LTS 2.222.1 through 2.426.2 (both inclusive) does not perform origin validation of requests made through the CLI WebSocket endpoint, resulting in a cross-site WebSocket hijacking (CSWSH) vulnerability.
NVD (es)
Jenkins 2.217 a 2.441 (ambos incluida), LTS 2.222.1 a 2.426.2 (ambos incluida) no realizan la validación del origen de las solicitudes realizadas a través del endpoint CLI WebSocket, lo que genera una vulnerabilidad de secuestro de WebSocket entre sitios (CSWSH), lo que permite a los atacantes para ejecutar comandos CLI en el controlador Jenkins.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23898 changed 2025-06-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-53ph-2r2x-vqw8 changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2024-23898 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2024-23898 changed 2026-09-08 | Apache-2.0 |