CVE-2024-23898
JSON

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 packageVersionsReported by
Jenkins Project JenkinsNot 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.441GitHub Advisory Database
jenkins jenkinsfrom 2.217 up to 2.441, from 2.222.1 up to 2.426.2NVD
jenkins (Bitnami)from 2.217.0 before 2.452.1Bitnami Vulnerability Database

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-346

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

SourceRecordLicence
CVE ListCVE-2024-23898 changed 2025-06-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-53ph-2r2x-vqw8 changed 2026-08-07CC-BY-4.0
NVDCVE-2024-23898 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2024-23898 changed 2026-09-08Apache-2.0