Medium, CVSS 5.3MavenPublished
Insufficiently Protected Credentials in Jenkins Pipeline SCM API for Blue Ocean Plugin
CVE-2022-30952 · GHSA-g74w-93cp-5p3p
- Affected
- Maven io.jenkins.blueocean:blueocean-pipeline-scm-api < 1.25.4
- Fixed in
- 1.25.4· Vendor fix available
- Issue
- 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…
Recommended action: Upgrade to 1.25.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.