WaratekVRT Sign in

CVE-2019-5312

Severity9.8 Critical CVSS 3.1 2 scores
Fixed in3.3.2.B
WeaknessXML external entity (XXE) (CWE-611)
Published4 Jan 2019
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 7 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 1.7% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.

How to mitigate CVE-2019-5312

Upgrade the affected software to 3.3.2.B or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.5 none AV:N/AC:L/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.github.binarywang:weixin-java-common 0 3.3.2.B unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv com.github.binarywang weixin-java-common generic < 3.3.2
nvd wxjava project wxjava generic < 3.4.0

References

URLTags
https://github.com/Wechat-Group/WxJava/issues/903 WEB
https://github.com/Wechat-Group/WxJava/issues/903#issuecomment-453747039 WEB
https://github.com/Wechat-Group/WxJava/commit/8ec61d1328f50e23cd14285a950ca57a088b32b2 WEB

Timeline

Published2019-01-04By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.