{"id":"CVE-2019-5312","aliases":["EUVD-2022-4092","GHSA-h755-h99p-9ffv"],"status":"published","title":"XML External Entity Reference in weixin-java-tools","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01683,"percentile":0.77129,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-611"],"published":"2019-01-04T16:00:00Z","modified":"2026-10-20T10:51:40Z","fixes":[{"ecosystem":"Maven","package":"com.github.binarywang:weixin-java-common","fixed_in":["3.3.2.B"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.github.binarywang:weixin-java-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.2.B"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.github.binarywang:weixin-java-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.2.B"}]}],"versions":["0.0.1-20250512.041921","1.3.4","1.3.5","1.3.5.1","1.3.5.10","1.3.5.11","1.3.5.2","1.3.5.3","1.3.5.4","1.3.5.5","1.3.5.6","1.3.5.7","1.3.5.8","1.3.5.9","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.3.0","2.3.1","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4-beta","2.4.4.BETA","2.4.5.BETA","2.4.6.BETA","2.4.7.BETA","2.4.8.BETA","2.4.9.BETA","2.5.0","2.5.1.BETA","2.5.2.BETA","2.5.3.BETA","2.5.4.BETA","2.5.5.BETA","2.5.6.BETA","2.5.7.BETA","2.6.0","2.6.1.BETA","2.6.2.BETA","2.6.3.BETA","2.6.4.BETA","2.6.5.BETA","2.7.0","2.7.1.BETA","2.7.2.BETA","2.7.3.BETA","2.7.4.BETA","2.7.5.BETA","2.7.6.BETA","2.7.7","2.7.7.BETA","2.7.8","2.7.8.BETA","2.7.9.BETA","2.8.0","2.8.1.BETA","2.8.2.BETA","2.8.3.BETA","2.8.4.BETA","2.8.5.BETA","2.8.6.BETA","2.8.7.BETA","2.8.8.BETA","2.8.9.BETA","2.9.0","2.9.1.BETA","2.9.2.BETA","2.9.3.BETA","2.9.4.BETA","2.9.5.BETA","2.9.6.BETA","2.9.7.BETA","2.9.8.BETA","2.9.9.BETA","3.0.0","3.0.1.BETA","3.0.2.BETA","3.0.3.BETA","3.0.4.BETA","3.0.5.BETA","3.0.6.BETA","3.0.7.BETA","3.0.8.BETA","3.0.9.BETA","3.1.0","3.1.1.BETA","3.1.2.BETA","3.1.3.BETA","3.1.4.BETA","3.1.5.BETA","3.1.6.BETA","3.1.7.BETA","3.1.8.B","3.1.9.B","3.2.0","3.2.1.B","3.2.10.B","3.2.2.B","3.2.3.B","3.2.4.B","3.2.5.B","3.2.6.B","3.2.7.B","3.2.8.B","3.2.9.B","3.3.0","3.3.1.B","tmp-build-20250512.032409","v4.7.0-20250512.042306"]}],"products":[{"vendor":"wxjava_project","product":"wxjava"}],"references":[{"url":"https://github.com/Wechat-Group/WxJava/issues/903","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5312","tags":["advisory"]},{"url":"https://github.com/Wechat-Group/WxJava/issues/903#issuecomment-453747039","tags":["web"]},{"url":"https://github.com/Wechat-Group/WxJava/commit/8ec61d1328f50e23cd14285a950ca57a088b32b2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h755-h99p-9ffv"}],"sources":{"cve":[{"id":"CVE-2019-5312","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.","status":"published","published":"2019-01-04T16:00:00Z","modified":"2024-08-04T19:54:53.252Z","updated_at":"2026-11-02T14:20:18.411291Z"}],"euvd":[{"id":"EUVD-2022-4092","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.","status":"published","published":"2019-01-04T16:00:00Z","modified":"2024-08-04T19:54:53Z","updated_at":"2026-11-03T03:06:51.888651Z"}],"ghsa":[{"id":"GHSA-h755-h99p-9ffv","title":"XML External Entity Reference in weixin-java-tools","description":"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.","status":"published","published":"2022-05-14T01:40:24Z","modified":"2024-01-08T20:11:01Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:37:30.183224Z"}],"nvd":[{"id":"CVE-2019-5312","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.","status":"published","published":"2019-01-04T16:29:00.307Z","modified":"2026-06-17T02:37:29.937Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:05:02.989216Z"}],"osv":[{"id":"CVE-2019-5312","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.","status":"published","published":"2019-01-04T16:29:00.307Z","modified":"2026-10-20T10:51:40.049952061Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:12.675558Z"},{"id":"GHSA-h755-h99p-9ffv","title":"XML External Entity Reference in weixin-java-tools","description":"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.","status":"published","published":"2022-05-14T01:40:24Z","modified":"2026-09-10T03:49:23.337970679Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
