CVE-2024-43044: Path Traversal

Published Aug 7, 2024
·
Updated

Jenkins 2.470 and earlier, LTS 2.452.3 and earlier allows agent processes to read arbitrary files from the Jenkins controller file system by using the ClassLoaderProxy#fetchJar method in the Remoting library.

Other sources

Jenkins uses the Remoting library (typically agent.jar or remoting.jar) for the communication between controller and agents. This library allows agents to load classes and classloader resources from the controller, so that Java objects sent from the controller (build steps, etc.) can be executed on agents.

In addition to individual class and resource files, Remoting also allows Jenkins plugins to transmit entire jar files to agents using the Channel#preloadJar API. As of publication of this advisory, this feature is used by the following plugins distributed by the Jenkins project: bouncycastle API, Groovy, Ivy, TeamConcert

In Remoting 3256.v88af6e922152 and earlier, except 3206.3208.v409508a675ff and 3248.3250.v3277a8e88c9b, included in Jenkins 2.470 and earlier, LTS 2.452.3 and earlier, calls to Channel#preloadJar result in the retrieval of files from the controller by the agent using ClassLoaderProxy#fetchJar. Additionally, the implementation of ClassLoaderProxy#fetchJar invoked on the controller does not restrict paths that agents could request to read from the controller file system.

This allows agent processes, code running on agents, and attackers with Agent/Connect permission to read arbitrary files from the Jenkins controller file system.

The Remoting library in Jenkins 2.471, LTS 2.452.4, LTS 2.462.1 now sends jar file contents with Channel#preloadJar requests, the only use case of ClassLoaderProxy#fetchJar in agents, so that agents do not need to request jar file contents from controllers anymore.

To retain compatibility with older versions of Remoting in combination with the plugins listed above, ClassLoaderProxy#fetchJar is retained and otherwise unused, just deprecated. Its implementation in Jenkins 2.471, LTS 2.452.4, LTS 2.462.1 was changed so that it is now limited to retrieving jar files referenced in the core classloader or any plugin classloader.

GitHub

Affected Software

8 affected componentsFixes available
maven/org.jenkins-ci.main:jenkins-core>=2.470<2.471
2.471
maven/org.jenkins-ci.main:jenkins-core>=2.460<2.462.1
2.462.1
maven/org.jenkins-ci.main:jenkins-core<2.452.4
2.452.4
maven/org.jenkins-ci.main:remoting>=3256<3256.3258
3256.3258
maven/org.jenkins-ci.main:remoting>=3248<3248.3250
3248.3250
maven/org.jenkins-ci.main:remoting<3206.3208
3206.3208
Jenkins Jenkins<2.452.4
Jenkins Jenkins<2.471

Event History

Aug 7, 2024
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description
Data Sourced
via Red Hat·02:20 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·03:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-43044?

CVE-2024-43044 is classified as a critical vulnerability, allowing unauthorized file access on the Jenkins controller.

2

How do I fix CVE-2024-43044?

To fix CVE-2024-43044, upgrade to Jenkins version 2.471 or later, or LTS version 2.452.4 or later.

3

Which versions of Jenkins are affected by CVE-2024-43044?

Jenkins versions 2.470 and earlier, as well as LTS version 2.452.3 and earlier, are affected by CVE-2024-43044.

4

What impact does CVE-2024-43044 have on Jenkins security?

CVE-2024-43044 can allow agent processes to read arbitrary files from the Jenkins controller file system, posing a significant security risk.

5

Is there any specific remediation for agent processes to prevent CVE-2024-43044?

In addition to upgrading Jenkins, restricting permissions for agent processes can help mitigate the risks associated with CVE-2024-43044.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203