Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-23897: Arbitrary File Read in Jenkins CLI

Published Jan 24, 2024 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Aug 19, 2024
In the wildActivePer CISA KEV
Vendor
Jenkins
IdentifiersCVE-2024-23897CWE-552

CVE-2024-23897 is an arbitrary file read vulnerability affecting Jenkins weekly 2.441 and earlier and Jenkins LTS 2.426.2 and earlier. Jenkins' built-in CLI uses the args4j command parser with its expandAtFiles feature enabled, causing arguments beginning with an '@' character followed by a file path to be replaced with that file's contents. Expanded contents can be disclosed through CLI command responses, including error messages. Attackers with Overall/Read permission can read entire files, while attackers without that permission, including unauthenticated users, can read the first few lines, depending on the available commands. Files are interpreted using the controller process's default character encoding. Disclosure of sensitive information can enable further compromise, including remote code execution under additional conditions.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation exposes files readable by the Jenkins controller process, potentially disclosing source code, configuration data, credentials, SSH private keys, and cryptographic secrets. The extent of disclosure depends on Jenkins permissions, available CLI commands, and character-encoding constraints. Stolen credentials or keys can enable unauthorized access to connected systems and CI/CD infrastructure; disclosure of suitable cryptographic secrets can support remote code execution under additional conditions. Exploitation has been associated with data theft, initial access, and subsequent ransomware deployment, rather than ransomware being a direct effect of the file-read primitive.

Mitigation

If you can’t patch tonight, do this now.

Until an update can be installed, restrict access to Jenkins and its CLI interfaces to trusted administrative networks, accounting for HTTP, WebSocket, and SSH access paths. Remove unnecessary internet exposure and limit the controller process's access to sensitive files. Requiring authentication alone does not eliminate the issue because authenticated users with Overall/Read permission can disclose entire files. Monitor suspicious CLI activity, but do not treat a successful HTTP response or an echoed file argument alone as proof of successful file disclosure.

Remediation

Patch, then assume compromise.

Upgrade Jenkins weekly to 2.442 or later, or Jenkins LTS to 2.426.3 or later. These releases disable the vulnerable command-parser file-expansion behavior. For vendor-packaged Jenkins deployments, install the corresponding vendor security updates. If exploitation is suspected, investigate controller access and downstream activity, and revoke or rotate credentials and keys that may have been disclosed.

Public exploits

Exploits

35 exploits validated by Mallory's analysis. Hidden: 14 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
jenkins_cli_ampersand_arbitrary_file_read.rbThis repository contains a single Metasploit auxiliary module (modules/auxiliary/gather/jenkins_cli_ampersand_arbitrary_file_read.rb) that exploits CVE-2024-23897, a vulnerability in Jenkins' CLI protocol argument parsing. The exploit leverages the 'help' command and the args4j library's @file expansion feature to read arbitrary files from the Jenkins server. By carefully timing two HTTP requests, the module can retrieve up to the first two lines of any file accessible to the Jenkins process, including highly sensitive files such as Jenkins secrets, credentials, and system files like /etc/passwd and /etc/shadow. The module is operational and requires the attacker to specify the target file path and Jenkins base URI. It is designed for use against Jenkins instances running vulnerable versions and accessible over the network. The code is written in Ruby and is intended to be run within the Metasploit Framework.Disclosed Jan 24, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2024-23897This repository is a Go-based exploit tool targeting Jenkins servers vulnerable to CVE-2024-23897, an arbitrary file read vulnerability via the Jenkins CLI. The tool is operational and provides both detection and exploitation capabilities. It allows users to scan single or multiple Jenkins instances (via URL or list), check for vulnerability, enumerate available CLI commands, read arbitrary files (such as /etc/passwd), and in some cases execute commands via the Jenkins CLI interface. The main entry point is 'cmd/CVE-2024-23897/CVE-2024-23897.go', which orchestrates the scanning and exploitation logic. The tool interacts with the Jenkins /cli?remoting=false endpoint using a custom binary protocol, and supports features such as proxying, custom headers, concurrency, and update checks. The codebase is modular, with clear separation between input handling, output formatting, runner logic, and the core scanner/exploit logic. The exploit is not part of a larger framework and is self-contained. It is suitable for both proof-of-concept and operational exploitation of vulnerable Jenkins instances.wjlin0 · Disclosed Jan 27, 2024 · go · networkOperationalCVE-2024-23897Repository is a small standalone Python exploit PoC for CVE-2024-23897 targeting Jenkins. It contains one executable script (CVE-2024-23897.py), a README with usage examples, and a requirements file. The script uses requests, argparse, colorama, urllib.parse, uuid, and concurrent.futures. Its main logic builds a crafted binary payload that is POSTed to the Jenkins CLI endpoint /cli?remoting=false with custom headers such as Session and Side=upload, then performs a paired Side=download request to retrieve the response. The payload embeds a user-controlled file path argument, indicating arbitrary file-read intent. If the optional -c/--command argument is supplied, the script also sends raw command bytes to the same endpoint with Side=command, claiming RCE capability. The tool supports single-target mode and bulk scanning/exploitation from a file with configurable thread count, and can append returned content to an output file. No hardcoded C2, callback host, or external infrastructure is present; all network interaction is directed at attacker-specified Jenkins targets. Overall, this is an operational standalone exploit script rather than a framework module or mere detector.Ap0dexMe0 · Disclosed Feb 19, 2024 · python · markdown · network · webOperationalCVE-2024-23897This repository contains a Python exploit script (CVE-2024-23897.py) targeting Jenkins servers vulnerable to CVE-2024-23897, an arbitrary file read vulnerability that can lead to remote code execution (RCE). The script allows an attacker to target one or multiple Jenkins servers by specifying a single URL or a file containing a list of targets. It uses HTTP POST requests to the /cli?remoting=false endpoint with specially crafted headers and payloads to trigger the vulnerability. If a command is specified, it will be executed on the target Jenkins server. The exploit supports concurrent execution using threads and can save successful responses to an output file. The repository also includes a README.md with detailed usage instructions and a requirements.txt listing Python dependencies. The main attack vector is network-based, exploiting the Jenkins HTTP(S) interface. The script is operational and provides real exploitation capabilities, not just detection.ThatNotEasy · Disclosed Feb 19, 2024 · python · networkOperationalCVE-2024-23897-Arbitrary-file-readThis repository provides two Python scripts to exploit CVE-2024-23897, an arbitrary file read vulnerability in Jenkins (versions 2.441 and earlier, and Jenkins LTS 2.426.2 and earlier). The scripts automate the exploitation process by interacting with the Jenkins server via the jenkins-cli.jar tool. The user is prompted for the Jenkins server URL and can optionally download the required CLI tool from the target. The scripts then present a menu to execute various commands, primarily leveraging the 'connect-node' command to read sensitive files from the server, including system files (/etc/passwd, /etc/os-release), Jenkins configuration and credential files, and SSH private keys. There are two variants: one for standard Jenkins installations and one adapted for Dockerized Jenkins (using different file paths). The repository also includes a README with usage instructions, affected versions, and Google dorks for finding vulnerable Jenkins instances. The exploit is operational, providing direct file read capabilities but not a fully weaponized or framework-integrated attack.pulentoski · Disclosed Feb 20, 2024 · python · networkOperationalCVE-2024-23897-exploitThe repository contains a standalone Python exploit (1,622 bytes) and a Spanish README (849 bytes). The script accepts a target IP, HTTP port, and server-side file path, downloads jenkins-cli.jar from that target, and invokes Java's Jenkins CLI with connect-node @{ruta}. CVE-2024-23897 causes vulnerable CLI argument parsing to expand the referenced server-side file, allowing its contents to leak through command errors. This is actual exploitation rather than version detection, but disclosure can be limited by permissions, command behavior, and file encoding. The script supplies no authentication, performs no version check, and implements neither remote code execution nor automated secret extraction. CLI output is inherited by the terminal. Cleanup occurs only after a successful subprocess exit, so expected CLI errors may leave the downloaded JAR behind. The shell command interpolates unquoted operator arguments with shell=True, creating a separate local command-injection risk if those arguments are untrusted. The downloaded JAR is executed without integrity verification. The README provides an /etc/passwd example against 172.17.0.2:8080, screenshots hosted on GitHub, and a DockerLabs training-lab reference; those documentation links are not contacted by the exploit. The stated vulnerability is CLI argument expansion, not conventional web local-file inclusion. Original repository URL, analyzed git reference, and archive size were not supplied; empty strings and zero represent unavailable metadata. The supplied file sizes total 2,471 bytes, which is not an archive-size measurement.Maalfer · Disclosed May 16, 2024 · python · network · webOperationalCVE-2024-23897This repository contains a Python exploit script (exploit.py) targeting CVE-2024-23897, a critical file read vulnerability in Jenkins versions prior to 2.442 and LTS 2.426.3. The exploit allows an attacker to read arbitrary files from the Jenkins server by sending crafted HTTP requests. The script provides an interactive menu with options to check the Jenkins version, verify if the target is vulnerable, and exploit the vulnerability by specifying a file path to read. The exploit requires the attacker to supply the Jenkins server URL and the desired file path. All actions and outputs are logged to a local file (jenkins_exploit.log). The README.md provides setup instructions for a vulnerable Jenkins environment but does not contain exploit code. The main attack vector is network-based, targeting Jenkins' HTTP API endpoints. The exploit is operational, providing a working file read capability but does not include advanced payload customization or post-exploitation features.hybinn · Disclosed Oct 6, 2025 · python · networkOperationalExploit-CVE-2024-23897This repository contains a Python exploit script (exploit.py) targeting CVE-2024-23897, a vulnerability in Jenkins that allows arbitrary file read via the Jenkins CLI endpoint. The exploit constructs a custom binary payload and interacts with the Jenkins server over HTTP, specifically targeting the /cli?remoting=false endpoint. The script requires the attacker to specify the target Jenkins URL and the absolute path of the file to read. It attempts to extract sensitive information, such as credentials, from the server by reading arbitrary files. The repository structure is simple, consisting of a README.md and the main exploit script. The exploit is operational and can be used directly against vulnerable Jenkins instances on both Linux and Windows platforms.aadi0258 · Disclosed Oct 26, 2025 · python · networkOperationalCVE-2024-23897Repository contains a single Python proof-of-concept exploit (PoC.py) for CVE-2024-23897 affecting Jenkins CLI argument parsing (args4j '@file' expansion). The script takes three arguments (ip, puerto, ruta), downloads the target’s Jenkins CLI jar from /jnlpJars/jenkins-cli.jar, then executes it locally via a shell command: `java -jar jenkins-cli.jar -s http://<ip>:<port>/ -http connect-node @<ruta>`. The '@<ruta>' portion is the core exploit primitive intended to trigger server-side file read/injection behavior during CLI command processing, enabling internal file disclosure (README demonstrates /etc/passwd). After execution it deletes the downloaded jar. Repo structure: LICENSE (MIT), README.md (Spanish usage/installation notes and brief vulnerability explanation), and PoC.py (the only code and entry point).wvverez · Disclosed Jan 18, 2026 · python · networkOperationalabyss-c2This repository is a multi-module Python offensive framework centered on exploiting HiSilicon DVR/NVR/IP camera devices via CVE-2020-25078, then managing compromised hosts through a Flask/SocketIO web panel. It is not a simple single-file PoC: it includes a control server (server.py), persistence and post-exploitation tooling, credential attacks, recon modules, web vulnerability scanners, network service checks, pivoting, reverse shell support, and a SQLite-backed datastore. Core exploit logic is in exploit.py and scanner.py. exploit.py probes numerous traversal/disclosure paths such as /../../.../mnt/mtd/Config/Account1 and related config/system files, parses returned content with multiple regex patterns to recover credentials, fingerprints device families, and falls back to known default credentials when disclosure succeeds but parsing does not. scanner.py operationalizes this by scanning IPs/CIDRs and common ports, checking liveness, fingerprinting likely cameras, invoking the CVE-2020-25078 checks, and storing recovered credentials in cameras.db. Post-exploitation capability is substantial. telnet_client.py provides raw Telnet login and command execution. botnet.py fans out commands across stored hosts. persistence.py installs SSH authorized_keys, cron, rc.local, init.d, systemd, inittab telnetd, and bind-shell style persistence. reverse_shell.py generates many Linux/IoT reverse shell one-liners and runs listeners. pivot_chain.py and socks_pivot.py support chained execution and local SOCKS5 pivoting through compromised hosts. Additional modules broaden scope beyond the HiSilicon exploit: brute.py and cred_spray.py perform credential attacks across Telnet, SSH, FTP, HTTP, SMB, databases, VNC, LDAP, WinRM, and more; network_exploit.py checks for exposed/misconfigured services and some well-known vulnerabilities such as MS17-010 and BlueKeep; web_exploit.py, web_cves.py, web_bugs.py, and web_brute.py scan websites for exposed files, CMS fingerprints, generic bug classes, and multiple CVE signatures. Recon/intel support includes ASN, DNS, GeoIP, JARM, WAF detection, proxy/Tor rotation, screenshot grabbing from camera snapshot endpoints, and Telegram/Discord/AbuseIPDB integrations. The repository structure is coherent and functional, with many CLI-capable modules and a central web UI in templates/index.html. Overall, this is an operational exploit-and-post-exploitation toolkit focused on HiSilicon IoT devices but expanded into a broader C2-style offensive platform.flags-alt · Disclosed May 20, 2026 · python · html · network · web · localOperationalcve-2024-23897-jenkins-pocThis repository is a self-contained proof-of-concept and reproduction harness for CVE-2024-23897, the Jenkins CLI arbitrary file read caused by args4j @-file expansion. It is a real exploit repository, not merely documentation or detection logic. The core exploit logic is implemented in `poc.py`, a Python 3 standard-library harness that orchestrates two Docker Compose environments: a vulnerable Jenkins LTS 2.426.2 stack and a patched Jenkins LTS 2.426.3 stack. The exploit itself is delivered through the official `jenkins-cli.jar`, executed from an isolated attacker container to simulate a remote network attacker. Repository structure is straightforward: `Dockerfile.vuln` and `Dockerfile.fix` build the two Jenkins variants with the `matrix-auth` plugin installed; `docker-compose.vuln.yml` and `docker-compose.fix.yml` define the victim Jenkins controller and an `eclipse-temurin:17-jre` attacker sidecar; `init.groovy.d/01-create-users.groovy` bootstraps two users (`admin` and `readuser`) and configures matrix-based authorization so the PoC can demonstrate the advisory’s permission split precisely; `evidence/` contains captured outputs from vulnerable and fixed runs; and `report/report.tex` is a long-form write-up rather than exploit code. Main exploit capability: arbitrary file read from the Jenkins controller filesystem by passing an argument like `@/tmp/poc-proof.txt` to Jenkins CLI commands. On vulnerable Jenkins, args4j expands the token into file contents before command dispatch. The PoC demonstrates multiple disclosure modes: (1) authenticated `readuser` with only `Jenkins.READ` can obtain full file disclosure using `connect-node`, because each line of the file is echoed back in command processing errors; (2) anonymous users can still obtain partial disclosure with commands such as `who-am-i` and `help`, where parser-related errors expose at least part of the expanded content before authorization fully blocks the request. The provided evidence files confirm that the vulnerable stack leaks the marker lines while the patched stack treats `@/tmp/poc-proof.txt` literally and does not disclose file contents. Attack surface is network/web-based: the attacker container reaches Jenkins over the Docker network using `http://jenkins-vuln:8080/` or `http://jenkins-fix:8080/`. Exposed ports include 8080 and 50000. Important filesystem targets and artifacts include `/tmp/poc-proof.txt` (the demonstration file), `/tmp/jenkins-cli.jar` (CLI client used by the harness), and `/var/jenkins_home` plus `/var/jenkins_home/init.groovy.d` in the containerized Jenkins setup. Overall, this is an operational PoC that safely reproduces the vulnerability in a local lab and clearly contrasts vulnerable versus fixed behavior.rivaedoardo62-boop · Disclosed Jun 16, 2026 · python · groovy · network · webOperationalcve-2024-23897-jenkins_lfi_reproductionThis repository is a small standalone exploit PoC for CVE-2024-23897, the Jenkins CLI arbitrary file read vulnerability. It contains two files: a README with vulnerability background, affected versions, reproduction steps, escalation guidance, and mitigation advice; and a single Python exploit script, exploit.py, which is the operational entry point. The Python code implements the Jenkins CLI remoting interaction directly rather than using an external framework. It builds low-level protocol frames with helper functions such as _pack_unsigned_long, _pack_string, _pack_command, build_cli_handshake, and build_cli_command. The exploit logic connects to the target host over the Jenkins CLI service, hardcoded to TCP port 50000, optionally wrapping the socket with TLS when the supplied target URL uses HTTPS. It then sends a CLI handshake and a crafted command containing an argument in the form @<file_path>, relying on args4j expansion on the server side to read the specified file. The script’s main capability is arbitrary file read from the Jenkins controller filesystem. It includes response parsing via extract_file_content to recover leaked content from CLI error/output text. Based on the visible code and README, it supports both targeted reads of operator-specified files and a scan mode that checks multiple sensitive Jenkins paths. The README explicitly highlights post-read escalation paths such as extracting master.key, hudson.util.Secret, and credentials.xml to decrypt stored credentials and potentially achieve broader compromise, but the repository itself does not implement credential decryption or direct RCE. Operationally, this is more than a detection script: it actively attempts exploitation and can save recovered content to a local output file. The payload is basic and hardcoded around Jenkins CLI command abuse, so the maturity is best classified as OPERATIONAL rather than WEAPONIZED.razureink · Disclosed Jul 24, 2026 · python · markdown · networkOperationalCVE-2024-23897-CTFThis repository is a self-contained Jenkins CTF environment with a working, lab-specific CVE-2024-23897 exploit. Its 10 files comprise two documentation files, an ignore file, Docker and Compose deployment definitions, a shell entrypoint, three Groovy initialization scripts, and a Python exploit. Six files contain code when the Dockerfile's embedded C helper and build instructions are included. The Dockerfile deploys Jenkins LTS 2.426.2 and compiles a SUID-root flag reader. The initialization scripts enable anonymous read access, create an administrator account, deliberately write its plaintext credentials to /var/jenkins_home/users/admin/passwd, and publish an audit-log hint on the dashboard. The entrypoint injects the runtime flag, protects its files, removes flag environment variables, and starts Jenkins as the jenkins user. Compose exposes port 10002 and sets a 256 MB memory limit. exploit/solve.py downloads the Jenkins CLI JAR, invokes help with an @file argument to disclose the audit manifest, then invokes connect-node to recover file lines from 'No such agent' errors. It searches candidate paths and a hardcoded fallback for a colon-delimited credential record. The resulting administrator credentials are printed along with manual Script Console instructions. Remote command execution is therefore guided, not automated. Script Console execution is a legitimate administrator feature; the plaintext credential file and SUID helper are deliberately planted challenge conditions, not inherent consequences of the CVE. No reverse shell, external exfiltration destination, persistence, or container escape is implemented. The code is substantive rather than a detector or fake exploit, although successful execution was not demonstrated in the supplied material. Documentation has inconsistent weekly-version boundaries: CVE-2024-23897 affects Jenkins 2.441 and earlier and LTS 2.426.2 and earlier; the corresponding fixes are 2.442 and LTS 2.426.3. Repository URL, Git reference, and archive size were not provided; empty strings and zero represent unavailable metadata.ydkdk12345-bot · Disclosed Oct 19, 2026 · python · sh · network · web · localOperationalsecure-api-cve-2024-23897This is an educational security lab combining a Flask API, security CI, and a manual CVE-2024-23897 reproduction. The 21-file inventory contains ten Python source/test files, three YAML workflow/deployment files, documentation, and dependency/tool configuration. Shell commands are embedded in documentation and CI; there is no standalone exploit script or bundled CLI JAR. Repository ref and archive size were not supplied; the empty ref and zero size represent unknown values, not verified metadata. The report content is partially truncated. The exploit component consists of documented Java CLI commands and two small Compose definitions: Jenkins 2.441 published on host port 8080 and patched 2.442 on 8081. The hardcoded help "@/etc/passwd" argument causes vulnerable server-side args4j expansion, with file lines reflected in parser errors. The documentation reports two disclosed lines. Credential recovery and eventual RCE are discussed but not implemented or demonstrated. There is no attacker-controlled callback, exfiltration server, persistence, or destructive payload. app/ implements account registration/login, bcrypt password hashing, short-lived HS256 JWTs, parameterized SQLite queries, escaped post output, pagination, security headers, and an in-process login throttle. tests/ contains 22 test functions covering authentication and defensive behavior; these are not Jenkins vulnerability tests. GitHub Actions runs pytest, Bandit with SARIF upload, and pip-audit. docs/ contains the report, bilingual companion, and manual capture procedure. No test or exploit was executed during this analysis. Important accuracy caveats: the Jenkins patch disables unsafe @file expansion by default; the documentation's claim that the essential fix was simply requiring CLI authentication is misleading. The reported authentication error alone does not establish that the file-read primitive was patched. The Compose files do not reproduce authorization/setup state and publish ports without loopback binding or explicit network isolation. References to Webmin CVE-2019-15107 and Apache traversal are stale documentation remnants, not implemented exploit targets. The demo API also has departures from its security claims. Database initialization unconditionally seeds alice/Alice-Strong-Pass-1 and bob/Bob-Strong-Pass-1; it is not restricted to debug mode. Deleted-user checks occur only in /api/me, not in the shared JWT middleware, so other protected routes can accept a still-valid token for a deleted account. Password validation permits up to 128 characters without enforcing bcrypt 5's 72-byte limit, allowing some registration and unknown-user login inputs to trigger server errors. JWT signing uses JWT_SECRET, separately from SECRET_KEY. These issues should be distinguished from the Jenkins exploit.foreverlanterns · Disclosed Oct 29, 2026 · python · bash · networkOperationalCVE-2024-23897The repository contains five files: one standalone Python exploit, README.md, SECURITY.md, an attribution/MIT license, and .gitignore. exploit.py is the sole executable entry point and uses requests rather than an exploitation framework. It targets CVE-2024-23897 by submitting @file arguments to Jenkins CLI commands whose argument parsing can expose file contents before authorization prevents command execution. The visible code constructs binary PlainCLIProtocol argument frames, decodes stdout/stderr/exit frames, and coordinates download and upload operations using a background thread and UUID session identifier. Empty responses are retried up to four times. Error-matching expressions recover file content echoed by argument-count and option-parsing failures. The documented command sequence uses who-am-i, help, and keep-build to recover up to three leading lines without credentials. Lines beginning with '-' can prevent progress to subsequent lines. This is a functional file-disclosure exploit with a detection mode, not an RCE implementation or merely a version scanner. The command-line interface exposes single-file and interactive modes, automatic or explicit OS selection, an optional HTTP/HTTPS proxy, TLS-verification bypass, configurable timeout, and a default target port of 8080. Documentation describes --check as testing expansion using a nonexistent path without reading a real file. Fixed Jenkins releases are weekly 2.442 and LTS 2.426.3. Documentation links are attribution and advisory references, not runtime callback destinations. No exfiltration service, persistence mechanism, or destructive payload is evident in the supplied material. The supplied exploit.py content is truncated during the HTTP transport implementation and resumes within argument-parser setup. Consequently, the complete request handling, OS detection, check, and file-reading helpers cannot be independently inspected. Repository URL, git reference, and archive size were not supplied; empty strings and zero represent unavailable metadata.d4ytox · Disclosed Nov 12, 2026 · python · networkOperationalCVE-2024-23897This repository contains a proof-of-concept (POC) exploit written in Python. The main file, poc.py, is designed to exploit a vulnerability in a service that exposes an HTTP endpoint at /cli?remoting=false. The exploit works by sending two specially crafted HTTP POST requests in parallel threads, using a shared session UUID. The payload is constructed to request the contents of an arbitrary file from the target server, as specified by the user (e.g., /etc/passwd). The README provides basic usage instructions. The code is self-contained and does not rely on external frameworks. The exploit demonstrates the ability to read arbitrary files from the target, indicating a likely file read or deserialization vulnerability in the target service. No specific product or CVE is mentioned, but the structure suggests it targets a Jenkins CLI or similar service.binganao · Disclosed Jan 26, 2024 · python · networkPoCCVE-2024-23897This repository contains a Python proof-of-concept exploit for CVE-2024-23897, a vulnerability in Jenkins that allows arbitrary file read via the CLI's expandAtFiles feature. The exploit script (CVE-2024-23897.py) takes a target URL (or a list of targets) and a file path to read from the Jenkins server. It crafts and sends POST requests to the '/cli?remoting=false' endpoint, leveraging a specially constructed payload to trigger the vulnerability. The script supports both single and multiple targets and prints the response (file contents) from the server. The README provides background on the vulnerability, usage instructions, and a reference to the official Jenkins advisory. The exploit is a functional proof-of-concept and does not provide weaponized or post-exploitation features.h4x0r-dz · Disclosed Jan 26, 2024 · python · networkPoCCVE-2024-23897This repository contains a Python proof-of-concept (PoC) exploit and scanner for CVE-2024-23897, a critical vulnerability affecting Jenkins versions <= 2.441 and <= LTS 2.426.2. The main file, CVE-2024-23897.py, is a command-line tool that allows users to scan for and exploit the vulnerability by sending specially crafted HTTP POST requests to the Jenkins /cli?remoting=false endpoint. The exploit enables reading up to 3 lines from an arbitrary file on the target Jenkins server. The tool supports targeting single IPs, IP ranges, CIDR blocks, or lists of hosts, and can read targets from a file. It also allows customization of the Jenkins CLI command and language used in the payload. The README provides detailed usage instructions and documents the tool's features and changelog. No hardcoded IPs or domains are present; the tool is designed for flexible targeting as specified by the user.xaitax · Disclosed Jan 26, 2024 · python · networkPoCCVE-2024-23897This repository contains a proof-of-concept exploit for CVE-2024-23897, a critical file read vulnerability in Jenkins (versions 2.441 and earlier, LTS 2.426.2 and earlier). The exploit is implemented in a single Python script (CVE-2024-23897.py) and is accompanied by a detailed README.md. The script targets the Jenkins CLI endpoint (/cli?remoting=false) and leverages a flaw in the args4j library's expandAtFiles feature, allowing attackers to read arbitrary files from the Jenkins controller file system. The exploit works by sending a crafted binary payload to the Jenkins server and retrieving the file contents via a coordinated upload/download session. The README provides usage instructions, example commands, and references to official advisories. The exploit requires network access to a vulnerable Jenkins instance and does not require authentication for partial file reads, but full file reads may require Overall/Read permission. The repository is structured simply, with the main exploit logic contained in the Python script and documentation in the README.Vozec · Disclosed Jan 28, 2024 · python · markdown · networkPoCCVE-2024-23897This repository provides a proof-of-concept exploit for CVE-2024-23897, a critical vulnerability in Jenkins (versions 2.441 and earlier, LTS 2.426.2 and earlier). The vulnerability allows unauthenticated attackers to read arbitrary files from the Jenkins controller file system by abusing the Jenkins CLI argument parser, which interprets arguments starting with '@' as file inclusions. The repository contains four files: a C++ source file (main.cpp) implementing the exploit logic, a Bash script (run_exploit.sh) to automate compilation and execution, a README.md with usage instructions and references, and a LICENSE file. The exploit works by sending a specially crafted HTTP POST request to the Jenkins CLI endpoint ('/cli?remoting=false') on the target server, embedding the '@' character followed by a file path in the request payload. The script demonstrates reading '/etc/passwd' as an example. The attack vector is network-based, requiring access to the Jenkins CLI endpoint. The exploit is a proof-of-concept and does not include advanced payloads or post-exploitation features.r0xDB · Disclosed Jan 28, 2024 · c++ · bash · networkPoCCVE-2024-23897This repository contains a Python proof-of-concept exploit for CVE-2024-23897, a vulnerability in Jenkins (versions 2.441 and earlier, LTS 2.426.2 and earlier) that allows arbitrary file read via the Jenkins CLI. The exploit script (CVE-2024-23897 Jenkins.py) takes a target URL (or a list of targets) and a file path to read from the server. It crafts and sends POST requests to the /cli?remoting=false endpoint, abusing the CLI command parser's @file path expansion feature to retrieve file contents from the Jenkins controller. The script uses threading to send upload and download requests, and checks the response for evidence of successful exploitation. The README.md provides background on the vulnerability, affected versions, mitigation steps, and usage instructions. No hardcoded IPs or domains are present; the script is designed to be run against user-supplied Jenkins instances. The exploit is a standalone Python script and does not rely on any external frameworks.viszsec · Disclosed Jan 29, 2024 · python · networkPoCCVE-2024-23897This repository provides a Python proof-of-concept exploit for CVE-2024-23897, a critical arbitrary file read vulnerability in Jenkins (<=2.441, LTS <=2.426.2). The exploit leverages a flaw in the Jenkins CLI argument parser, which expands arguments prefixed with '@' by reading the referenced file from the server's filesystem. The main script, 'jenkins_fileread.py', allows unauthenticated attackers to interactively or directly specify files to read from a vulnerable Jenkins server via the /cli?remoting=false HTTP endpoint. The script supports options for saving file contents, using proxies, and customizing requests. The README.md provides detailed usage instructions, example file targets (such as /etc/passwd, /proc/self/environ, and Jenkins-specific files), and references to official advisories. The exploit is limited to reading plaintext files and cannot fully read binary files. The repository consists of two files: the exploit script and a comprehensive README. No detection or fake code is present; the exploit is functional and focused on file disclosure via network access to the Jenkins CLI endpoint.godylockz · Disclosed Feb 16, 2024 · python · networkPoCCVE-2024-23897-Jenkins-4.441This repository contains a proof-of-concept exploit for CVE-2024-23897, an arbitrary file leak vulnerability in Jenkins (tested on version 4.441). The main file, CVE-2024-23897.cpp, is a C++ program that automates the exploitation process. It takes a target Jenkins server URL and a file path as arguments. The exploit first downloads the Jenkins CLI JAR file from the target server, then uses the CLI to execute the 'connect-node' command, passing the specified file as input. This results in the contents of the file being leaked if the server is vulnerable. The repository also includes a README.md with compilation and usage instructions. The exploit is network-based, targeting Jenkins servers accessible over HTTP, and demonstrates the vulnerability by leaking files such as /etc/passwd.mil4ne · Disclosed May 8, 2024 · cpp · networkPoCCVE-2024-23897This repository contains a proof-of-concept (PoC) exploit for CVE-2024-23897, a local file inclusion vulnerability affecting Jenkins versions 2.441 and earlier. The main script, 'CVE-2024-23897.py', is a Python program that automates exploitation by first downloading the Jenkins CLI jar from the target server, then using it to execute the 'connect-node' command with a file path specified by the attacker. This allows the attacker to read arbitrary files from the Jenkins server's filesystem. The exploit requires the attacker to provide the Jenkins server's IP address, port, and the file path to read. The README provides usage instructions and context, confirming the exploit's purpose and target. No fake or detection-only scripts are present; the code is a functional exploit PoC.Maalfer · Disclosed May 16, 2024 · python · networkPoCCVE-2024-23897This repository provides a Python proof-of-concept exploit for CVE-2024-23897, a critical file read vulnerability in Jenkins (up to 2.441 and Jenkins LTS up to 2.426.2). The exploit abuses the Jenkins CLI endpoint (/cli?remoting=false) to read arbitrary files from the server's filesystem without authentication. The main script, CVE-2024-23897.py, allows the user to specify a target Jenkins URL and a file path to read, or to interactively issue file read commands via a shell-like interface. The exploit demonstrates the ability to retrieve sensitive files such as /etc/passwd, Jenkins configuration files, and secret keys, which could be leveraged for further attacks. The repository includes a README with usage instructions, a list of interesting files to target, and a Fofa dork for identifying vulnerable Jenkins instances. The code is standalone, written in Python, and does not rely on any exploitation framework.verylazytech · Disclosed Sep 30, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
JenkinsJenkinsapplication
FAQ

Frequently asked questions

Is CVE-2024-23897 exploited in the wild?
Yes. As of Nov 18, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 19, 2024.
Is there a public exploit for CVE-2024-23897?
Yes. Mallory tracks 35 public exploits or proofs of concept for CVE-2024-23897, the earliest disclosed Jan 24, 2024.
Is there a patch for CVE-2024-23897?
Upgrade Jenkins weekly to 2.442 or later, or Jenkins LTS to 2.426.3 or later. These releases disable the vulnerable command-parser file-expansion behavior.
What products are affected by CVE-2024-23897?
Jenkins.
How severe is CVE-2024-23897?
CVE-2024-23897 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 18, 2026.
Activity feed

Recent activity

36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+23 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence10Every report linking this CVE to a named adversary.
Associated malware12Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.