CVE-2024-23898
Cross-site WebSocket hijacking vulnerability in the Jenkins CLI
Reported by jenkins · Published January 24, 2024
jenkins-core is fixed in 2.442, 2.427 and 2.426.3 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.jenkins-ci.main:jenkins-core | Maven Central | 2.442, 2.427, 2.426.3 |
| jenkins | Alpine | 2.426.3-r0 |
| jenkins | Bitnami | 2.452.1 |
| jenkins | jenkins | 2.441, 2.426.2 |
| jenkins | Bitnami | 2.452.1 |
| Jenkins | Jenkins Project | 2.217 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Jenkins Project | Jenkins | 0, 2.442, 2.426.3 |
| Maven | org.jenkins-ci.main:jenkins-core | 2.222.1 |
| alpine | jenkins | 0 |
| chainguard | jenkins-2.440 | * |
| Jenkins Project | Jenkins | 2.440.1, 0, 2.442 |
Timeline
- Jan 24, 2024 CVE Published
- Jan 24, 2024 PoC Published (7 in total, the first dated here)
- Jan 31, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jun 20, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (8 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-23898
vulnetix vdb fixes CVE-2024-23898
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-23898/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Jenkins Security Advisory 2024-01-24 vendor-advisory
- CVE2_Jenkins_RCE exploit
- https://nvd.nist.gov/vuln/detail/CVE-2024-23898 advisory
- https://github.com/advisories/GHSA-53ph-2r2x-vqw8 advisory