CVE-2018-1000057
Jenkins Credentials Binding Plugin has Insufficiently Protected Credentials
Description
Jenkins Credentials Binding plugin allows specifying passwords and other secrets as environment variables, and will hide them from console output in builds.
However, since Jenkins will try to resolve references to other environment variables in environment variables passed to a build, this can result in values other than the one specified being provided to a build. For example, the value p4$$w0rd would result in Jenkins passing on p4$w0rd, as $$ is the escape sequence for a single $.
Credentials Binding plugin does not prevent such a transformed value (e.g. p4$w0rd) from being shown on the build log, allowing users to reconstruct the actual password value from the transformed one.
Credentials Binding plugin will now escape any $ characters in password values so they are correctly passed to the build.
This issue did apply to freestyle and other classic job types, but does not apply to Pipelines.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » credentials-binding | < 1.15 | 1.15 |
Blast radius
44% of the dependent artifacts (45) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 402 |
| 2 hops | 2,585 |
| 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
- 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
- org.jenkinsci.plugins » kubernetes-credentials3 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-2018-1000057 | nvd.nist.gov |
| Package | jenkinsci/credentials-binding-plugin | github.com |
| Web | jenkinsci/credentials-binding-plugin commit 0c75238 | github.com |
| Web | security/advisory/2018-02-05 | jenkins.io |
