jenkinsci/code-coverage-api-plugin · Security
XXE vulnerability in Jenkins Code Coverage API Plugin
- GHSA ID
- GHSA-cmgm-q8hf-p7jc
- CVE ID
- CVE-2020-2172
- Severity
- high
- Published
- Updated
- CVSS
- 7.1 · CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- CVSS v3
- 7.1 · CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Description
Code Coverage API Plugin 1.1.4 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks. This allows a user able to control the input files for the "Publish Coverage Report" post-build step to have Jenkins parse a crafted file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery.
Code Coverage API Plugin 1.1.5 disables external entity resolution for its XML parser.
CWEs
- CWE-611 · Improper Restriction of XML External Entity Reference
- CWE-776 · Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-2172 ↗
- https://jenkins.io/security/advisory/2020-04-07/#SECURITY-1699 ↗
- http://www.openwall.com/lists/oss-security/2020/04/07/3 ↗
- https://github.com/jenkinsci/code-coverage-api-plugin/commit/f0ef84c25f7bc4de4e722e994de57d238225834c ↗
- https://github.com/advisories/GHSA-cmgm-q8hf-p7jc ↗