{"id":"GHSA-7ff8-qfwx-8gx5","summary":"Improper masking of some secrets in Jenkins Credentials Binding Plugin","details":"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](https://www.jenkins.io/security/advisory/2018-02-05/#credentials-binding), `$` characters in secrets are escaped to `$$`. This will then be expanded to $ again once the secret is passed to (post) build steps.\n\nCredentials 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.","aliases":["CVE-2020-2182"],"modified":"2023-12-07T21:48:34.335996Z","published":"2022-05-24T17:17:14Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2022-06-24T00:56:55Z","nvd_published_at":"2020-05-06T13:15:00Z","cwe_ids":["CWE-522"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-2182"},{"type":"WEB","url":"https://github.com/jenkinsci/credentials-binding-plugin/commit/77681e0d184b0ccafa2a27da3b3bdbba95b4fe8f"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/credentials-binding-plugin"},{"type":"WEB","url":"https://jenkins.io/security/advisory/2020-05-06/#SECURITY-1835"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2020/05/06/3"}],"affected":[{"package":{"name":"org.jenkins-ci.plugins:credentials-binding","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins/credentials-binding"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.23"}]}],"versions":["1.0","1.0-beta-1","1.1","1.10","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.19","1.2","1.20","1.20.1","1.21","1.22","1.3","1.4","1.5","1.6","1.7","1.8","1.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 1.22","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7ff8-qfwx-8gx5/GHSA-7ff8-qfwx-8gx5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}