Loading...
Skip to main content

CVE-2024-43044

HIGH

Jenkins Remoting library arbitrary file read vulnerability

Published August 7, 2024Updated August 7, 2026Source: osv

Summary

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.v88a_f6e922152 and earlier, except 3206.3208.v409508a_675ff and 3248.3250.v3277a_8e88c9b_, 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.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.jenkins-ci.main:jenkins-core to 2.462.1 or later
<!-- Update pom.xml dependency version to 2.462.1 for org.jenkins-ci.main:jenkins-core -->
Maven
Update org.jenkins-ci.main:remoting to 3248.3250 or later
<!-- Update pom.xml dependency version to 3248.3250 for org.jenkins-ci.main:remoting -->
Maven
Update org.jenkins-ci.main:jenkins-core to 2.452.4 or later
<!-- Update pom.xml dependency version to 2.452.4 for org.jenkins-ci.main:jenkins-core -->
Maven
Update org.jenkins-ci.main:remoting to 3256.3258 or later
<!-- Update pom.xml dependency version to 3256.3258 for org.jenkins-ci.main:remoting -->
Maven
Update org.jenkins-ci.main:remoting to 3206.3208 or later
<!-- Update pom.xml dependency version to 3206.3208 for org.jenkins-ci.main:remoting -->
Maven
Update org.jenkins-ci.main:jenkins-core to 2.471 or later
<!-- Update pom.xml dependency version to 2.471 for org.jenkins-ci.main:jenkins-core -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

PackageEcosystemAffectedFixed In
org.jenkins-ci.main:jenkins-core
maven
2.460, 2.461, 2.4622.462.1
org.jenkins-ci.main:remoting
maven
3248.v65ecb_254c2983248.3250
org.jenkins-ci.main:jenkins-core
maven
1.396, 1.397, 1.398, 1.399 (+885 more)2.452.4
org.jenkins-ci.main:remoting
maven
3256.v88a_f6e9221523256.3258
org.jenkins-ci.main:remoting
maven
1.396, 1.397, 1.398, 1.399 (+205 more)3206.3208
org.jenkins-ci.main:jenkins-core
maven
2.4702.471

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-43044?
Jenkins Remoting library arbitrary file read vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.0/10).
How do I check if my project is affected by CVE-2024-43044?
CVE-2024-43044 affects org.jenkins-ci.main:jenkins-core and org.jenkins-ci.main:remoting. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-43044 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-h856-ffvv-xvr4
BIT-jenkins-2024-43044

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies