Missing Origin Validation in WebSockets in Jenkins and Jenkins LTS - CVE-2024-23898

 

Missing Origin Validation in WebSockets in Jenkins and Jenkins LTS - CVE-2024-23898

Published: January 25, 2024 / Updated: March 31, 2025


Vulnerability identifier: #VU85790
CSH Severity: High
CVSS v4: 8.5 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-23898
CWE-ID: CWE-1385
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to a cross-site WebSocket hijacking (CSWSH) issue when the affected application does not perform origin validation of requests made through the CLI WebSocket endpoint. A remote attacker can execute CLI commands on the Jenkins controller.


Affected software

Jenkins
Jenkins LTS
OpenShift Developer Tools and Services
jenkins (Red Hat package)
jenkins-2-plugins (Red Hat package)

How to mitigate CVE-2024-23898

Install updates from vendor's website.

Jenkins - update to 2.442
Jenkins LTS - update to 2.426.3
jenkins (Red Hat package) - addressed in versions 2.426.3.1706515686-3.el8, 2.426.3.1706516254-3.el8, 2.426.3.1706516929-3.el8
jenkins-2-plugins (Red Hat package) - addressed in versions 4.11.1706516946-1.el8, 4.12.1706515741-1.el8, 4.13.1706516346-1.el8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins