CVE-2024-23898
Cross-site WebSocket hijacking vulnerability in the Jenkins CLI
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2024-23898- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
CVE List
8.8
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.
- Record
CVE-2024-23898- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
EUVDEUVD-2024-0256
8.8
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.
- Record
EUVD-2024-0256- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-53ph-2r2x-vqw8
8.8
Cross-site WebSocket hijacking vulnerability in the Jenkins CLI
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.
- Record
GHSA-53ph-2r2x-vqw8- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2024-23898- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-53ph-2r2x-vqw8
8.8
Cross-site WebSocket hijacking vulnerability in the Jenkins CLI
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.
- Record
GHSA-53ph-2r2x-vqw8- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-346
- Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2024:0775
9.8
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- Record
RHSA-2024:0775- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:0776
9.8
Red Hat Security Advisory: jenkins and jenkins-2-plugins security update
- Record
RHSA-2024:0776- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:0778
9.8
Red Hat Security Advisory: Jenkins and Jenkins-2-plugins security update
- Record
RHSA-2024:0778- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBIT-jenkins-2024-23898 No score
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.
- Record
BIT-jenkins-2024-23898- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.jenkins-ci.main:jenkins-coreMaven |
2.217 to 2.426.2 | 2.426.3 |
org.jenkins-ci.main:jenkins-coreMaven |
2.427 to 2.440 | 2.442 |
org.jenkins-ci.main:jenkins-coreMaven |
2.441 to 2.441 | None known |
jenkinsBitnami |
2.217.0 up to 2.452.1 | 2.452.1 |
org.jenkins-ci.main:jenkins-coreMaven |
2.217 up to 2.426.3, plus listed versions 2.2182.2192.2202.2212.222 Show 45 moreShow less2.222.12.222.32.222.42.2232.2242.2252.2262.2272.2282.2292.2302.2312.2322.2332.2342.2352.235.12.235.22.235.32.235.42.235.52.2362.2372.2382.2392.2402.2412.2422.2432.2442.2452.2462.2472.2482.2492.249.12.249.22.249.32.2502.2512.2522.2532.2542.2552.256 |
2.426.3 |
org.jenkins-ci.main:jenkins-coreMaven |
2.427 up to 2.442, plus listed versions 2.4282.4292.4302.4312.432 Show 12 moreShow less2.4332.4342.4352.4362.4372.4382.4392.4402.440.12.440.22.440.32.441 |
2.442 |
org.jenkins-ci.main:jenkins-coreMaven |
Listed versions 2.441 |
None known |
jenkins-2-pluginsRed Hat:ocp_tools:4.11::el8 From an advisory covering 11 CVEs |
before 0:4.11.1706516946-1.el8 | 0:4.11.1706516946-1.el8 |
jenkinsRed Hat:ocp_tools:4.11::el8 From an advisory covering 11 CVEs |
before 0:2.426.3.1706516929-3.el8 | 0:2.426.3.1706516929-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.13::el8 From an advisory covering 10 CVEs |
before 0:4.13.1706516346-1.el8 | 0:4.13.1706516346-1.el8 |
jenkinsRed Hat:ocp_tools:4.13::el8 From an advisory covering 10 CVEs |
before 0:2.426.3.1706516254-3.el8 | 0:2.426.3.1706516254-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.12::el8 From an advisory covering 24 CVEs |
before 0:4.12.1706515741-1.el8 | 0:4.12.1706515741-1.el8 |
jenkinsRed Hat:ocp_tools:4.12::el8 From an advisory covering 24 CVEs |
before 0:2.426.3.1706515686-3.el8 | 0:2.426.3.1706515686-3.el8 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | davidmgaviria/CVE2_Jenkins_RCE | 2024-11-14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-23898 is a high vulnerability (CVSS 8.8) in Jenkins, published January 24, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 67.2%, the 99th percentile. Fixed in org.jenkins-ci.main:jenkins-core 2.426.3.
References
jenkins.io/security/advisory/2024-01-24
sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins
openwall.com/lists/oss-security/2024/01/24/6
nvd.nist.gov/vuln/detail/CVE-2024-23898
github.com/jenkinsci/jenkins/commit/de450967f38398169650b55c002f1229a3fcdb1b
github.com/advisories/GHSA-53ph-2r2x-vqw8
Show 179 moreShow less
github.com/jenkinsci/jenkins
access.redhat.com/errata/RHSA-2024:0775
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2066479
bugzilla.redhat.com/show_bug.cgi?id=2135435
bugzilla.redhat.com/show_bug.cgi?id=2150009
bugzilla.redhat.com/show_bug.cgi?id=2164278
bugzilla.redhat.com/show_bug.cgi?id=2170039
bugzilla.redhat.com/show_bug.cgi?id=2170041
bugzilla.redhat.com/show_bug.cgi?id=2177632
bugzilla.redhat.com/show_bug.cgi?id=2177634
bugzilla.redhat.com/show_bug.cgi?id=2222709
bugzilla.redhat.com/show_bug.cgi?id=2260180
bugzilla.redhat.com/show_bug.cgi?id=2260182
issues.redhat.com/browse/OCPBUGS-471
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_0775.json
access.redhat.com/security/cve/CVE-2022-1471
cve.org/CVERecord?id=CVE-2022-1471
nvd.nist.gov/vuln/detail/CVE-2022-1471
github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2
access.redhat.com/security/cve/CVE-2022-29599
cve.org/CVERecord?id=CVE-2022-29599
nvd.nist.gov/vuln/detail/CVE-2022-29599
access.redhat.com/security/cve/CVE-2022-42889
cve.org/CVERecord?id=CVE-2022-42889
nvd.nist.gov/vuln/detail/CVE-2022-42889
blogs.apache.org/security/entry/cve-2022-42889
lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
seclists.org/oss-sec/2022/q4/22
access.redhat.com/security/cve/CVE-2023-24422
cve.org/CVERecord?id=CVE-2023-24422
nvd.nist.gov/vuln/detail/CVE-2023-24422
jenkins.io/security/advisory/2023-01-24
access.redhat.com/security/cve/CVE-2023-25761
cve.org/CVERecord?id=CVE-2023-25761
nvd.nist.gov/vuln/detail/CVE-2023-25761
jenkins.io/security/advisory/2023-02-15
access.redhat.com/security/cve/CVE-2023-25762
cve.org/CVERecord?id=CVE-2023-25762
nvd.nist.gov/vuln/detail/CVE-2023-25762
access.redhat.com/security/cve/CVE-2023-27903
cve.org/CVERecord?id=CVE-2023-27903
nvd.nist.gov/vuln/detail/CVE-2023-27903
jenkins.io/security/advisory/2023-03-08
access.redhat.com/security/cve/CVE-2023-27904
cve.org/CVERecord?id=CVE-2023-27904
nvd.nist.gov/vuln/detail/CVE-2023-27904
access.redhat.com/security/cve/CVE-2023-37946
cve.org/CVERecord?id=CVE-2023-37946
nvd.nist.gov/vuln/detail/CVE-2023-37946
jenkins.io/security/advisory/2023-07-12
access.redhat.com/security/cve/CVE-2024-23897
cve.org/CVERecord?id=CVE-2024-23897
nvd.nist.gov/vuln/detail/CVE-2024-23897
cisa.gov/known-exploited-vulnerabilities-catalog
access.redhat.com/security/cve/CVE-2024-23898
cve.org/CVERecord?id=CVE-2024-23898
access.redhat.com/errata/RHSA-2024:0776
bugzilla.redhat.com/show_bug.cgi?id=1955739
bugzilla.redhat.com/show_bug.cgi?id=2126789
issues.redhat.com/browse/JKNS-271
issues.redhat.com/browse/JKNS-289
issues.redhat.com/browse/OCPBUGS-10934
issues.redhat.com/browse/OCPBUGS-11158
issues.redhat.com/browse/OCPBUGS-11329
issues.redhat.com/browse/OCPBUGS-11446
issues.redhat.com/browse/OCPBUGS-11452
issues.redhat.com/browse/OCPBUGS-1357
issues.redhat.com/browse/OCPBUGS-13651
issues.redhat.com/browse/OCPBUGS-13870
issues.redhat.com/browse/OCPBUGS-14112
issues.redhat.com/browse/OCPBUGS-14311
issues.redhat.com/browse/OCPBUGS-14634
issues.redhat.com/browse/OCPBUGS-15647
issues.redhat.com/browse/OCPBUGS-15986
issues.redhat.com/browse/OCPBUGS-1709
issues.redhat.com/browse/OCPBUGS-1942
issues.redhat.com/browse/OCPBUGS-2099
issues.redhat.com/browse/OCPBUGS-2184
issues.redhat.com/browse/OCPBUGS-2318
issues.redhat.com/browse/OCPBUGS-27389
issues.redhat.com/browse/OCPBUGS-655
issues.redhat.com/browse/OCPBUGS-6579
issues.redhat.com/browse/OCPBUGS-6870
issues.redhat.com/browse/OCPBUGS-710
issues.redhat.com/browse/OCPBUGS-8377
issues.redhat.com/browse/OCPBUGS-8442
issues.redhat.com/browse/OCPTOOLS-245
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_0776.json
access.redhat.com/security/cve/CVE-2021-26291
cve.org/CVERecord?id=CVE-2021-26291
nvd.nist.gov/vuln/detail/CVE-2021-26291
maven.apache.org/docs/3.8.1/release-notes.html
access.redhat.com/security/cve/CVE-2022-25857
cve.org/CVERecord?id=CVE-2022-25857
nvd.nist.gov/vuln/detail/CVE-2022-25857
bitbucket.org/snakeyaml/snakeyaml/issues/525
access.redhat.com/errata/RHSA-2024:0778
bugzilla.redhat.com/show_bug.cgi?id=1856376
bugzilla.redhat.com/show_bug.cgi?id=2107376
bugzilla.redhat.com/show_bug.cgi?id=2180530
bugzilla.redhat.com/show_bug.cgi?id=2215229
bugzilla.redhat.com/show_bug.cgi?id=2222710
bugzilla.redhat.com/show_bug.cgi?id=2227788
bugzilla.redhat.com/show_bug.cgi?id=2232422
bugzilla.redhat.com/show_bug.cgi?id=2232423
bugzilla.redhat.com/show_bug.cgi?id=2232425
bugzilla.redhat.com/show_bug.cgi?id=2232426
bugzilla.redhat.com/show_bug.cgi?id=2236340
bugzilla.redhat.com/show_bug.cgi?id=2236341
bugzilla.redhat.com/show_bug.cgi?id=2239634
issues.redhat.com/browse/OCPBUGS-10976
issues.redhat.com/browse/OCPBUGS-11348
issues.redhat.com/browse/OCPBUGS-13652
issues.redhat.com/browse/OCPBUGS-13901
issues.redhat.com/browse/OCPBUGS-14113
issues.redhat.com/browse/OCPBUGS-14393
issues.redhat.com/browse/OCPBUGS-14642
issues.redhat.com/browse/OCPBUGS-15648
issues.redhat.com/browse/OCPBUGS-27391
issues.redhat.com/browse/OCPBUGS-3692
issues.redhat.com/browse/OCPBUGS-4819
issues.redhat.com/browse/OCPBUGS-4833
issues.redhat.com/browse/OCPBUGS-6632
issues.redhat.com/browse/OCPBUGS-6982
issues.redhat.com/browse/OCPBUGS-7016
issues.redhat.com/browse/OCPBUGS-7050
issues.redhat.com/browse/OCPBUGS-8420
issues.redhat.com/browse/OCPBUGS-8497
issues.redhat.com/browse/OCPTOOLS-246
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_0778.json
access.redhat.com/security/cve/CVE-2020-7692
cve.org/CVERecord?id=CVE-2020-7692
nvd.nist.gov/vuln/detail/CVE-2020-7692
access.redhat.com/security/cve/CVE-2022-1962
cve.org/CVERecord?id=CVE-2022-1962
nvd.nist.gov/vuln/detail/CVE-2022-1962
go.dev/issue/53616
groups.google.com/g/golang-announce/c/nqrv9fbR0zE
access.redhat.com/security/cve/CVE-2023-2976
cve.org/CVERecord?id=CVE-2023-2976
nvd.nist.gov/vuln/detail/CVE-2023-2976
access.redhat.com/security/cve/CVE-2023-20861
cve.org/CVERecord?id=CVE-2023-20861
nvd.nist.gov/vuln/detail/CVE-2023-20861
spring.io/blog/2023/03/20/spring-framework-6-0-7-and-5-3-26-fix-cve-2023-20860-and-cve-2023-20861
access.redhat.com/security/cve/CVE-2023-20862
cve.org/CVERecord?id=CVE-2023-20862
nvd.nist.gov/vuln/detail/CVE-2023-20862
spring.io/security/cve-2023-20862
access.redhat.com/security/cve/CVE-2023-26048
cve.org/CVERecord?id=CVE-2023-26048
nvd.nist.gov/vuln/detail/CVE-2023-26048
github.com/eclipse/jetty.project/security/advisories/GHSA-qw69-rqj8-6qw8
access.redhat.com/security/cve/CVE-2023-26049
cve.org/CVERecord?id=CVE-2023-26049
nvd.nist.gov/vuln/detail/CVE-2023-26049
github.com/eclipse/jetty.project/security/advisories/GHSA-p26g-97m4-6q7c
access.redhat.com/security/cve/CVE-2023-37947
cve.org/CVERecord?id=CVE-2023-37947
nvd.nist.gov/vuln/detail/CVE-2023-37947
access.redhat.com/security/cve/CVE-2023-40167
cve.org/CVERecord?id=CVE-2023-40167
nvd.nist.gov/vuln/detail/CVE-2023-40167
github.com/eclipse/jetty.project/security/advisories/GHSA-hmr7-m48g-48f6
rfc-editor.org/rfc/rfc9110
access.redhat.com/security/cve/CVE-2023-40337
cve.org/CVERecord?id=CVE-2023-40337
nvd.nist.gov/vuln/detail/CVE-2023-40337
jenkins.io/security/advisory/2023-08-16
access.redhat.com/security/cve/CVE-2023-40338
cve.org/CVERecord?id=CVE-2023-40338
nvd.nist.gov/vuln/detail/CVE-2023-40338
access.redhat.com/security/cve/CVE-2023-40339
cve.org/CVERecord?id=CVE-2023-40339
nvd.nist.gov/vuln/detail/CVE-2023-40339
access.redhat.com/security/cve/CVE-2023-40341
cve.org/CVERecord?id=CVE-2023-40341
nvd.nist.gov/vuln/detail/CVE-2023-40341
Left out here: 208 versions. The JSON record has them.