Skip to content
OpenAdvisories
Critical · 9.8 Known exploited · Ransomware Scanner template Public exploit CVE-2024-23897 BIT-jenkins-2024-23897EUVD-2024-0270GHSA-6f9g-cxwr-q5jr

Arbitrary file read vulnerability through the Jenkins CLI can lead to RCE

Published Jan 24, 2024 · Updated Oct 21, 2025 · Assigned by jenkins

Description

Jenkins 2.441 and earlier, LTS 2.426.2 and earlier does not disable a feature of its CLI command parser that replaces an '@' character followed by a file path in an argument with the file's contents, allowing unauthenticated attackers to read arbitrary files on the Jenkins controller file system.

Affected products

VendorProductAffectedFixed
Jenkins Project Jenkins — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Ocp Tools 4 jenkins 2.426.3.1706515686-3.el8 RHSA-2024:0778, RHSA-2024:0776, RHSA-2024:0775
Red Hat Ocp Tools 4 jenkins-2-plugins 4.11.1706516946-1.el8 RHSA-2024:0778, RHSA-2024:0776, RHSA-2024:0775

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 52 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.main:jenkins-core >= 1.606, < 2.426.3 2.426.3 GHSA-6f9g-cxwr-q5jr
Maven org.jenkins-ci.main:jenkins-core >= 2.427, < 2.440.1 2.440.1 GHSA-6f9g-cxwr-q5jr
Maven org.jenkins-ci.main:jenkins-core >= 2.441, < 2.442 2.442 GHSA-6f9g-cxwr-q5jr

Advisories 6

References