Vulnerabilities in pkg:maven/org.jenkins-ci.plugins/matrix-project

PACKAGE
Advisory Identifier: GHSA-cjgm-9vc9-56mx
Advisory Summary

CVE-2024-23900 is a MODERATE (CVSS 4.6) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Matrix project libraries in the Maven ecosystem. The issue involves path traversal vulnerability in jenkins matrix project plugin. Remediation is available by upgrading affected packages to version 822.824.v14451b.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jenkins-ci.plugins/matrix-project

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jenkins-ci.plugins/matrix-project. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cjgm-9vc9-56mx CVE-2024-23900 MODERATE Path traversal vulnerability in Jenkins Matrix Project Plugin
GHSA-vqwg-4v6f-h6x5 CVE-2022-20615 MODERATE Stored XSS vulnerability in Matrix Project Plugin
GHSA-w43x-5f8f-686p CVE-2020-2225 HIGH Stored XSS vulnerability in multiple axis builds tooltips in Jenkins Matrix Project Plugin
GHSA-h6qc-455m-7v6v CVE-2020-2224 HIGH Stored XSS vulnerability in single axis builds tooltips in Jenkins Matrix Project Plugin
GHSA-qxf8-8837-hq7w CVE-2019-1003031 CRITICAL Script security sandbox bypass in Matrix Project Plugin

CVE-2024-23900 at a Glance

CVE Identifier CVE-2024-23900
GHSA Identifier GHSA-cjgm-9vc9-56mx
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Matrix project
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-23900

To remediate this vulnerability, upgrade all affected Matrix project dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jenkins-ci.plugins:matrix-project fixed: 822.824.v14451b
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>matrix-project</artifactId>
    <version>822.824.v14451b</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-23900, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

Analyze the terminal output to locate any version of Matrix project in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 822.824.v14451b), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Matrix project, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Jenkins Matrix Project Plugin 822.v01b_8c85d16d2 and earlier does not sanitize user-defined axis names of multi-configuration projects submitted through the `config.xml` REST API endpoint. This allows attackers with Item/Configure permission to create or replace any `config.xml` file on the Jenkins controller file system with content not controllable by the attackers. Matrix Project Plugin 822.824.v14451b_c0fd42 sanitizes user-defined axis names of Multi-configuration project.

CVE-2024-23900 Affected Matrix project Versions

1 component(s)
Fixed Versions:
822.824.v14451b
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:matrix-project
Maven
< 822.824.v14451b
822.824.v14451b

References

Frequently Asked Questions

What is CVE-2024-23900?
CVE-2024-23900 is a security vulnerability in Matrix project involving Path traversal vulnerability in Jenkins Matrix Project Plugin under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Matrix project versions are affected?
Affected versions include releases prior to 822.824.v14451b across affected packages: org.jenkins-ci.plugins:matrix-project.
What version fixes CVE-2024-23900?
Upgrading to 822.824.v14451b (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-project affected?
Yes, org.jenkins-ci.plugins:matrix-project is affected in releases prior to 822.824.v14451b. Upgrade your dependency to 822.824.v14451b or later.
What is the CVSS score of CVE-2024-23900?
CVE-2024-23900 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2024-23900?
CVE-2024-23900 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2024-23900?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cjgm-9vc9-56mx",
  "modified" : "2024-01-31T20:23:24Z",
  "published" : "2024-01-24T18:31:02Z",
  "aliases" : [ "CVE-2024-23900" ],
  "summary" : "Path traversal vulnerability in Jenkins Matrix Project Plugin",
  "details" : "Jenkins Matrix Project Plugin 822.v01b_8c85d16d2 and earlier does not sanitize user-defined axis names of multi-configuration projects submitted through the `config.xml` REST API endpoint.\n\nThis allows attackers with Item/Configure permission to create or replace any `config.xml` file on the Jenkins controller file system with content not controllable by the attackers.\n\nMatrix Project Plugin 822.824.v14451b_c0fd42 sanitizes user-defined axis names of Multi-configuration project.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:matrix-project"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "822.824.v14451b"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23900"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/matrix-project-plugin/commit/f7a5b24905f69896234da34250171c1be80cddb4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/matrix-project-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3289"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/01/24/6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-24T21:48:53Z",
    "nvd_published_at" : "2024-01-24T18:15:09Z"
  }
}