Vulnerabilities in pkg:maven/org.jenkins-ci.plugins/gitlab-plugin

PACKAGE
Advisory Identifier: GHSA-xhgq-h98j-859v
Advisory Summary

CVE-2025-24397 is a MODERATE (CVSS 4.3) incorrect permission check vulnerability (CWE-285: Improper Authorization) affecting Gitlab plugin libraries in the Maven ecosystem. The issue involves incorrect permission check in jenkins gitlab plugin allows enumerating credentials ids. Remediation is available by upgrading affected packages to version 1.9.7.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jenkins-ci.plugins/gitlab-plugin

6 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-xhgq-h98j-859v CVE-2025-24397 MODERATE Incorrect permission check in Jenkins GitLab Plugin allows enumerating credentials IDs
GHSA-j365-62px-vjjv CVE-2019-10300 HIGH Jenkins GitLab Plugin Cross-Site Request Forgery vulnerability
GHSA-923w-9p3x-hmgw CVE-2019-10301 HIGH Jenkins GitLab Plugin missing permission checks
GHSA-f9f9-4r63-4qcc CVE-2022-43411 LOW Non-constant time webhook token comparison in Jenkins GitLab Plugin
GHSA-f655-xhvm-cwp4 CVE-2022-34777 HIGH Cross-site Scripting in Jenkins GitLab Plugin
GHSA-5phj-qv74-pv4w CVE-2022-30955 MODERATE Missing permission check in Jenkins GitLab Plugin

CVE-2025-24397 at a Glance

CVE Identifier CVE-2025-24397
GHSA Identifier GHSA-xhgq-h98j-859v
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-285: Improper Authorization
Affected Product Gitlab plugin
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:N/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2025-24397

To remediate this vulnerability, upgrade all affected Gitlab plugin 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:gitlab-plugin fixed: 1.9.7
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>gitlab-plugin</artifactId>
    <version>1.9.7</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-2025-24397, 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 Gitlab plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.7), 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Gitlab plugin, 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

The Jenkins GitLab Plugin 1.9.6 and earlier does not correctly perform a permission check in an HTTP endpoint. This allows attackers with global Item/Configure permission (while lacking Item/Configure permission on any particular job) to enumerate credential IDs of GitLab API token credentials and Secret text credentials stored in Jenkins. Those can be used as part of an attack to capture the credentials using another vulnerability. An enumeration of credential IDs in GitLab Plugin 1.9.7 requires Overall/Administer permission.

CVE-2025-24397 Affected Gitlab plugin Versions

1 component(s)
Fixed Versions:
1.9.7
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:gitlab-plugin
Maven
< 1.9.7
1.9.7

References

Frequently Asked Questions

What is CVE-2025-24397?
CVE-2025-24397 is a security vulnerability in Gitlab plugin involving Incorrect permission check in Jenkins GitLab Plugin allows enumerating credentials IDs under CWE-285: Improper Authorization.
Which Gitlab plugin versions are affected?
Affected versions include releases prior to 1.9.7 across affected packages: org.jenkins-ci.plugins:gitlab-plugin.
What version fixes CVE-2025-24397?
Upgrading to 1.9.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gitlab-plugin affected?
Yes, org.jenkins-ci.plugins:gitlab-plugin is affected in releases prior to 1.9.7. Upgrade your dependency to 1.9.7 or later.
What is the CVSS score of CVE-2025-24397?
CVE-2025-24397 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2025-24397?
CVE-2025-24397 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2025-24397?
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-xhgq-h98j-859v",
  "modified" : "2025-01-22T19:08:13Z",
  "published" : "2025-01-22T18:31:55Z",
  "aliases" : [ "CVE-2025-24397" ],
  "summary" : "Incorrect permission check in Jenkins GitLab Plugin allows enumerating credentials IDs ",
  "details" : "The Jenkins GitLab Plugin 1.9.6 and earlier does not correctly perform a permission check in an HTTP endpoint.\n\nThis allows attackers with global Item/Configure permission (while lacking Item/Configure permission on any particular job) to enumerate credential IDs of GitLab API token credentials and Secret text credentials stored in Jenkins. Those can be used as part of an attack to capture the credentials using another vulnerability.\n\nAn enumeration of credential IDs in GitLab Plugin 1.9.7 requires Overall/Administer permission.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:gitlab-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24397"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/gitlab-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2025-01-22/#SECURITY-3260"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-22T19:08:12Z",
    "nvd_published_at" : "2025-01-22T17:15:13Z"
  }
}