Research · Jan 24, 2024
Critical Path Traversal Vulnerability Discovered in Jenkins CLI
A serious path traversal vulnerability in Jenkins CLI has been identified, allowing unauthorized access to sensitive files on the Jenkins controller.
What changed
A significant vulnerability has been uncovered in the Jenkins Command Line Interface (CLI) that affects versions up to 2.441 and LTS 2.426.2. This vulnerability arises from a flaw in the CLI command parser, which does not adequately disable a feature that allows the '@' character followed by a file path to be replaced with the file's contents.
- Unauthenticated attackers can exploit this flaw to read arbitrary files on the Jenkins controller file system.
- The vulnerability poses a severe risk to the confidentiality of sensitive information stored within Jenkins.
Who is affected
The following groups and products are particularly at risk due to this vulnerability:
Organizations using Jenkins versions 2.441 and earlier, as well as LTS 2.426.2 and earlier, are exposed to potential attacks.
- Jenkins users and administrators who rely on the CLI for automation and management tasks.
- Enterprise environments where Jenkins is integrated into CI/CD pipelines.
- Developers utilizing Jenkins for software development and deployment processes.
What to do
It is crucial for organizations to take immediate action to mitigate the risks associated with this vulnerability. Users should upgrade to the latest versions of Jenkins as soon as possible.
In addition to upgrading, consider implementing additional security measures to safeguard sensitive data.
- Upgrade Jenkins to versions beyond 2.441 or LTS 2.426.2.
- Review and restrict access to the Jenkins CLI to trusted users only.
- Regularly audit file permissions and access controls on the Jenkins controller.