XML External Entity Reference vulnerability in Jenkins Config File Provider Plugin
Date: 2022-05
Affected: maven/org.jenkins-ci.plugins:config-file-provider
Attack vector: ssrf
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2021-21642
CWE: CWE-611
CVSS: 8.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N)

Jenkins Config File Provider Plugin 3.7.0 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks. This allows attackers with the ability to define Maven configuration files to have Jenkins parse a crafted configuration file that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery. Jenkins Config File Provider Plugin 3.7.1 disables external entity resolution for its XML parser.


Mitigations:

Architectural layers (MAESTRO):