# CVE-2024-23897: Jenkins - Path Traversal

> Live exploitation tracking for CVE-2024-23897 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2024-23897

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 9.8
- **Public exploit available:** Yes
- **Affected products:** Jenkins
- **Weaknesses:** CWE-27 (Path Traversal: 'dir/../../filename'); CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'))
- **Tags:** cicd

## 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.

## CrowdSec analysis

[CVE-2024-23897](https://euvd.enisa.europa.eu/vulnerability/CVE-2024-23897) is a critical vulnerability in Jenkins that enables unauthenticated attackers to read arbitrary files from the Jenkins controller. This issue arises from the CLI command parser handling of arguments prefixed with an '@' character, which can lead to unauthorized disclosure of sensitive information.

CrowdSec has been tracking this vulnerability and its exploits since 26th of January 2024.

CrowdSec has not observed any significant exploitation activity targeting CVE-2024-23897 across its network. As a result, no community-driven trend analysis is available for this vulnerability at this time.

Attack patterns relate to misuse of the Jenkins CLI feature to access files on the server.

## Timeline

- 2024-01-24: CVE Published. CVE-2024-23897 is published to NVD.
- 2024-01-26: Rule Released. CrowdSec releases a rule to detect CVE-2024-23897 exploitation attempts against the CrowdSec Network.
- 2024-08-19: CISA KEV. CVE-2024-23897 is added to the Known Exploited Vulnerabilities catalog by CISA.
- 2024-09-09: CISA Remediation Deadline. Expiration of the CISA remediation deadline as described in [BOD 22-01](https://www.cisa.gov/news-events/directives/bod-22-01-reducing-significant-risk-known-exploited-vulnerabilities).
- 2024-12-17: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2024-23897 for the first time.

## References

- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314
- https://www.sonarsource.com/blog/excessive-expansion-uncovering-critical-security-vulnerabilities-in-jenkins/
- https://www.vicarius.io/vsociety/posts/the-anatomy-of-a-jenkins-vulnerability-cve-2024-23897-revealed-1

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2024-23897) follows observed exploitation activity for CVE-2024-23897. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
