CVE-2022-30952: Blueocean pipeline scm api Insufficiently Protected Credentials Vulnerability

MODERATE
Advisory Identifier: GHSA-g74w-93cp-5p3p
CVSS 5.3
CWE-522
Published
Advisory Summary

CVE-2022-30952 is a MODERATE (CVSS 5.3) insufficiently protected credentials vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Blueocean pipeline scm api libraries in the Maven ecosystem. The issue involves insufficiently protected credentials in jenkins pipeline scm api for blue ocean plugin. Remediation is available by upgrading affected packages to version 1.25.4.

CVE-2022-30952 at a Glance

CVE Identifier CVE-2022-30952
GHSA Identifier GHSA-g74w-93cp-5p3p
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Blueocean pipeline scm api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix CVE-2022-30952

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

io.jenkins.blueocean:blueocean-pipeline-scm-api fixed: 1.25.4
<dependency>
    <groupId>io.jenkins.blueocean</groupId>
    <artifactId>blueocean-pipeline-scm-api</artifactId>
    <version>1.25.4</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=io.jenkins.blueocean

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.jenkins.blueocean

Analyze the terminal output to locate any version of Blueocean pipeline scm api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.25.4), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.jenkins.blueocean 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Blueocean pipeline scm api, 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

When pipelines are created using the pipeline creation wizard in Blue Ocean, the credentials used are stored in the per-user credentials store of the user creating the pipeline. To allow pipelines to use this credential to scan repositories and checkout from SCM, the Blue Ocean Credentials Provider allows pipelines to access a specific credential from the per-user credentials store in Pipeline SCM API for Blue Ocean Plugin 1.25.3 and earlier. As a result, attackers with Job/Configure permission can rewrite job configurations in a way that lets them access and capture any attacker-specified credential from any user’s private credentials store. Pipeline SCM API for Blue Ocean Plugin 1.25.4 deprecates the Blue Ocean Credentials Provider and disables it by default. As a result, all jobs initially set up using the Blue Ocean pipeline creation wizard and configured to use the credential specified at that time will no longer be able to access the credential, resulting in failures to scan repositories, checkout from SCM, etc. unless the repository is public and can be accessed without credentials. This also applies to newly created pipelines after Pipeline SCM API for Blue Ocean Plugin has been updated to 1.25.4. Administrators should reconfigure affected pipelines to use a credential from the Jenkins credential store or a folder credential store. See [this help page on cloudbees.com](https://cloudbees.com/r/blue-ocean-credentials-removal) to learn more. To re-enable the Blue Ocean Credentials Provider, set the Java system property `io.jenkins.blueocean.rest.impl.pipeline.credential.BlueOceanCredentialsProvider.enabled` to `true`. Doing so is discouraged, as that will restore the unsafe behavior. While Credentials Plugin provides the _Configure Credential Providers_ UI to enable or disable certain credentials providers, enabling the Blue Ocean Credentials Provider there is not enough in Pipeline SCM API for Blue Ocean Plugin 1.25.4. Both the UI and system property need to enable the Blue Ocean Credentials Provider. Administrators not immediately able to update Blue Ocean are advised to disable the Blue Ocean Credentials Provider through the UI at _Manage Jenkins_ » _Configure Credential Providers_ and to reconfigure affected pipelines to use a credential from the Jenkins credential store or a folder credential store.

CVE-2022-30952 Affected Blueocean pipeline scm api Versions

1 component(s)
Fixed Versions:
1.25.4
Product / Package Ecosystem Affected Versions Fixed Version
io.jenkins.blueocean:blueocean-pipeline-scm-api
Maven
< 1.25.4
1.25.4

References

Frequently Asked Questions

What is CVE-2022-30952?
CVE-2022-30952 is a security vulnerability in Blueocean pipeline scm api involving Insufficiently Protected Credentials in Jenkins Pipeline SCM API for Blue Ocean Plugin under CWE-522: Insufficiently Protected Credentials.
Which Blueocean pipeline scm api versions are affected?
Affected versions include releases prior to 1.25.4 across affected packages: io.jenkins.blueocean:blueocean-pipeline-scm-api.
What version fixes CVE-2022-30952?
Upgrading to 1.25.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is blueocean-pipeline-scm-api affected?
Yes, io.jenkins.blueocean:blueocean-pipeline-scm-api is affected in releases prior to 1.25.4. Upgrade your dependency to 1.25.4 or later.
What is the CVSS score of CVE-2022-30952?
CVE-2022-30952 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-30952?
CVE-2022-30952 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Maven dependencies for CVE-2022-30952?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.jenkins.blueocean'. 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-g74w-93cp-5p3p",
  "modified" : "2023-12-15T09:39:34Z",
  "published" : "2022-05-18T00:00:40Z",
  "aliases" : [ "CVE-2022-30952" ],
  "summary" : "Insufficiently Protected Credentials in Jenkins Pipeline SCM API for Blue Ocean Plugin",
  "details" : "When pipelines are created using the pipeline creation wizard in Blue Ocean, the credentials used are stored in the per-user credentials store of the user creating the pipeline. To allow pipelines to use this credential to scan repositories and checkout from SCM, the Blue Ocean Credentials Provider allows pipelines to access a specific credential from the per-user credentials store in Pipeline SCM API for Blue Ocean Plugin 1.25.3 and earlier.\n\nAs a result, attackers with Job/Configure permission can rewrite job configurations in a way that lets them access and capture any attacker-specified credential from any user’s private credentials store.\n\nPipeline SCM API for Blue Ocean Plugin 1.25.4 deprecates the Blue Ocean Credentials Provider and disables it by default. As a result, all jobs initially set up using the Blue Ocean pipeline creation wizard and configured to use the credential specified at that time will no longer be able to access the credential, resulting in failures to scan repositories, checkout from SCM, etc. unless the repository is public and can be accessed without credentials.\n\nThis also applies to newly created pipelines after Pipeline SCM API for Blue Ocean Plugin has been updated to 1.25.4.\n\nAdministrators should reconfigure affected pipelines to use a credential from the Jenkins credential store or a folder credential store. See [this help page on cloudbees.com](https://cloudbees.com/r/blue-ocean-credentials-removal) to learn more.\n\nTo re-enable the Blue Ocean Credentials Provider, set the Java system property `io.jenkins.blueocean.rest.impl.pipeline.credential.BlueOceanCredentialsProvider.enabled` to `true`. Doing so is discouraged, as that will restore the unsafe behavior.\n\nWhile Credentials Plugin provides the _Configure Credential Providers_ UI to enable or disable certain credentials providers, enabling the Blue Ocean Credentials Provider there is not enough in Pipeline SCM API for Blue Ocean Plugin 1.25.4. Both the UI and system property need to enable the Blue Ocean Credentials Provider.\n\nAdministrators not immediately able to update Blue Ocean are advised to disable the Blue Ocean Credentials Provider through the UI at _Manage Jenkins_ » _Configure Credential Providers_ and to reconfigure affected pipelines to use a credential from the Jenkins credential store or a folder credential store.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.jenkins.blueocean:blueocean-pipeline-scm-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.25.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-30952"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/blueocean-plugin/commit/c4beeda0b574c297ac664511029feed0a15abaf1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/blueocean-plugin/tree/master/blueocean-pipeline-scm-api"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2022-05-17/#SECURITY-714"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2022/05/17/8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-02T14:57:49Z",
    "nvd_published_at" : "2022-05-17T15:15:00Z"
  }
}