XML External Entity Reference in weixin-java-tools
Date: 2022-05
Affected: maven/com.github.binarywang:weixin-java-common
Attack vector: other
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2019-5312
CWE: CWE-611
CVSS: 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

An issue was discovered in weixin-java-tools. There is an XXE vulnerability in the getXmlDoc method of the BaseWxPayResult.java file. NOTE: this issue exists because of an incomplete fix for CVE-2018-20318.


Mitigations:

Architectural layers (MAESTRO):