CVE-2020-2182
Improper masking of some secrets in Jenkins Credentials Binding Plugin
Description
Credentials Binding Plugin allows specifying passwords and other secrets as environment variables, and will hide them from console output in builds. As a side effect of the fix for SECURITY-698, $ characters in secrets are escaped to $$. This will then be expanded to $ again once the secret is passed to (post) build steps.
Credentials Binding Plugin 1.22 and earlier does not mask the escaped form of the secret (containing $$). This occurs for example in the "Execute Maven top-level targets" build step included in Jenkins.\n\nCredentials Binding Plugin 1.23 now masks secrets both in their original form and with escaped $ characters, so they will be masked even if printed before value expansion.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » credentials-binding | < 1.23 | 1.23 |
Blast radius
41% of the dependent artifacts (48) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 722 |
| 2 hops | 3,576 |
| 3 hops | 3,267 |
| 4 hops | 43 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jenkins-ci.plugins » docker-commons40 usages
- org.jenkins-ci.plugins » aws-credentials33 usages
- org.jenkinsci.plugins » pipeline-model-extensions18 usages
- org.jenkins-ci.plugins » azure-credentials17 usages
- org.csanchez.jenkins.plugins » kubernetes11 usages
- org.jenkins-ci.plugins » docker-workflow11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- com.datapipe.jenkins.plugins » hashicorp-vault-plugin6 usages
- org.jenkins-ci.plugins » jobcacher5 usages
- io.jenkins.blueocean » blueocean-events4 usages
- io.jenkins.plugins » pipeline-as-yaml4 usages
- io.jenkins.blueocean » blueocean3 usages
- io.jenkins.plugins » aws-global-configuration3 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2020-2182 | nvd.nist.gov |
| Package | jenkinsci/credentials-binding-plugin | github.com |
| Web | jenkinsci/credentials-binding-plugin commit 77681e0 | github.com |
| Web | security/advisory/2020-05-06 | jenkins.io |
| Web | lists/oss-security/2020/05/06/3 | openwall.com |
