Improper Restriction of XML External Entity Reference in PMD
Date: 2022-05
Affected: maven/net.sourceforge.pmd:pmd-core
Attack vector: info-disclosure
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2019-7722
CWE: CWE-611
CVSS: 8.1 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)

PMD 5.8.1 and earlier processes XML external entities in ruleset files it parses as part of the analysis process, allowing attackers tampering it (either by direct modification or MITM attacks when using remote rulesets) to perform information disclosure, denial of service, or request forgery attacks. (PMD 6.x is unaffected because of a 2017-09-15 change.)


Mitigations:

Architectural layers (MAESTRO):