CVE-2019-5312 XML External Entity Reference in weixin-java-tools
An XXE vulnerability in the weixin-java-tools library allows attackers to read sensitive files or cause denial of service via crafted XML.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-5312?
CVE-2019-5312 is a critical vulnerability in n/a, published on 4 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in weixin-java-tools v3.3.0. 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.
Weakness: CWE-611
Which versions are affected by CVE-2019-5312?
2 open source packages ship an affected version, including com.github.binarywang:weixin-java-common. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.github.binarywang:weixin-java-common Maven | All versions | 3.3.2.B |
com.github.binarywang:weixin-java-common Maven | All versions | 3.3.2.B |
Products include Wxjava Project Wxjava.
How do I fix CVE-2019-5312?
Upgrade com.github.binarywang:weixin-java-common to 3.3.2.B or later.
Is CVE-2019-5312 being exploited?
There is no known exploitation of CVE-2019-5312 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-h755-h99p-9ffv.