Command execution via unchecked WebSocket Origin
Published Jan 24, 2024 · Updated Jun 20, 2025
Cross-site WebSocket hijacking in Jenkins weekly 2.217 through 2.441 allows remote attackers to run CLI commands via a victim's browser. The cli/ws handler upgrades cross-origin WebSocket requests without comparing Origin to the controller URL, while cookies lacking explicit SameSite can accompany them. Jenkins LTS 2.222.1 through 2.426.2 is also affected; a victim must visit attacker-controlled content, and commands inherit anonymous or victim permissions.
Summary
What happened
Cross-site WebSocket hijacking in Jenkins weekly 2.217 through 2.441 allows remote attackers to run CLI commands via a victim's browser. The cli/ws handler upgrades cross-origin WebSocket requests without comparing Origin to the controller URL, while cookies lacking explicit SameSite can accompany them. Jenkins LTS 2.222.1 through 2.426.2 is also affected; a victim must visit attacker-controlled content, and commands inherit anonymous or victim permissions.
The record
- CVE
- CVE-2024-23898
- Published
- Jan 24, 2024
- Updated
- Jun 20, 2025
- Vendor
- Jenkins Project
- Product
- Jenkins
- Classifications
- CWE-346, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 24, 2024CVE publishedPublication date reported by the CVE source.
- Jun 20, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Affected versions are unavailable in this record. Check the vendor advisory for version and patch details.
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo