Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-23897 PoC — Jenkins 安全漏洞

Source
Associated Vulnerability
Title:Jenkins 安全漏洞 (CVE-2024-23897)
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.
Description
CVE-2024-23897 exploit script
Readme
# CVE-2024-23897

> Because of a misconfiguration of a default option in the CLI command parser, a attacker can read arbitrary files

## Summary of the CVE

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 Versions

- Jenkins < 2.442
- Jenkins LTS Edition < 2.426.3

## Anomalies

The Security Advisory states the following:

- Attackers with Overall/Read permission can read the entire file
- Attackers without Overall/Read permission can read the first few lines of a file, depending on available CLI commands

I have not been able to reproduce either of this, so the parsing of the output may be wrong in some cases. Use `--raw` if you feel like this is the case.

## References

- [Jenkins Security Advisory](https://www.jenkins.io/security/advisory/2024-01-24/)
- [Github POC - h4x0r-dz, Jan 26 2024](https://github.com/h4x0r-dz/CVE-2024-23897)
- [CVE-details - CVSS Score 9.8](https://www.cvedetails.com/cve/CVE-2024-23897)
File Snapshot

[4.0K] /data/pocs/1929ee7c193814a06b80b4a17fbd462011cb9bc2 ├── [9.4K] CVE-2024-23897.py ├── [1.2K] README.md └── [ 19] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →