Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-2365 Overview
CVE-2025-2365 is an XML External Entity (XXE) vulnerability affecting crmeb_java versions up to 1.3.4. The flaw resides in the webHook function of WeChatMessageController.java, which processes inbound XML messages without disabling external entity resolution. Remote attackers can submit crafted XML payloads to trigger external entity reference [CWE-610]. The exploit has been publicly disclosed, increasing the risk of opportunistic abuse against exposed instances.
Critical Impact
Authenticated remote attackers can abuse the WeChat webhook endpoint to read local files, probe internal network services, or cause service disruption through XML external entity references.
Affected Products
- crmeb_java versions up to and including 1.3.4
- Component: WeChatMessageController.java
- Function: webHook
Discovery Timeline
- 2025-03-17 - CVE-2025-2365 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-2365
Vulnerability Analysis
The vulnerability stems from improper configuration of the XML parser used in the webHook function of WeChatMessageController.java. The endpoint receives XML-formatted messages from WeChat callbacks and parses them without disabling external entity resolution. Attackers can submit a crafted XML payload containing a DOCTYPE declaration that references external entities. When the parser resolves these entities, it loads attacker-controlled resources from the local filesystem or remote URLs.
The weakness is categorized under CWE-610: Externally Controlled Reference to a Resource in Another Sphere. XXE conditions typically enable file disclosure, server-side request forgery (SSRF) against internal services, and in some cases denial of service through recursive entity expansion.
Root Cause
The underlying Java XML parser instantiated by webHook does not disable DOCTYPE declarations or external general and parameter entities. Secure defaults such as FEATURE_SECURE_PROCESSING, disallow-doctype-decl, and disabling external-general-entities and external-parameter-entities are absent. Without these controls, any XML document the function receives is treated as trusted input.
Attack Vector
An attacker sends an HTTP POST request to the WeChat webhook endpoint containing a malicious XML body. The payload defines an external entity referencing a local file path such as file:///etc/passwd or an internal URL. The parser dereferences the entity during processing and may return the content in a response or trigger an outbound request. Exploitation requires network access to the webhook endpoint and low-privilege context, as reflected in the CVSS vector.
Technical details and a proof-of-concept walkthrough are available in the GitHub Vulnerability Learning Resource and the VulDB entry #299864.
Detection Methods for CVE-2025-2365
Indicators of Compromise
- Inbound HTTP requests to the WeChat webhook endpoint containing <!DOCTYPE or <!ENTITY declarations in the XML body.
- Unexpected outbound connections from the application server to external hosts or internal RFC1918 addresses initiated by the Java process.
- Application log entries showing XML parsing errors referencing undefined entities, URIs, or file paths.
- Access attempts to sensitive filesystem locations such as /etc/passwd, /proc/self/environ, or Java configuration files by the application process.
Detection Strategies
- Deploy web application firewall rules that inspect XML request bodies for DOCTYPE and ENTITY keywords on routes handling WeChat callbacks.
- Monitor process behavior for the crmeb_java application reading files outside its working directory or opening sockets to unexpected destinations.
- Correlate HTTP request logs with filesystem and network telemetry to identify entity-resolution chains.
Monitoring Recommendations
- Enable verbose logging on the XML parser and capture full request bodies for the webHook route in a protected log store.
- Alert on outbound DNS or HTTP traffic from the application host targeting URLs that appear in inbound XML payloads.
- Track EPSS score changes for CVE-2025-2365 to adjust detection priority as exploitation signals evolve.
How to Mitigate CVE-2025-2365
Immediate Actions Required
- Restrict external network access to the WeChat webhook endpoint using firewall rules or reverse-proxy allowlists limited to WeChat callback source ranges.
- Audit the WeChatMessageController.java implementation and apply a hardened XML parser configuration that disables DOCTYPE processing.
- Review application and system logs for prior requests containing XML entity declarations to identify historical exploitation attempts.
Patch Information
No official vendor patch URL is listed in the NVD data for CVE-2025-2365. Organizations running crmeb_java version 1.3.4 or earlier should monitor the upstream repository for an updated release and apply code-level mitigations in the interim. Refer to the VulDB advisory for ongoing tracking.
Workarounds
- Configure the XML parser to set XMLConstants.FEATURE_SECURE_PROCESSING to true and set http://apache.org/xml/features/disallow-doctype-decl to true.
- Disable external general and parameter entities by setting external-general-entities and external-parameter-entities features to false on the DocumentBuilderFactory or SAXParserFactory instance.
- Validate inbound XML against a strict schema and reject any document containing a DOCTYPE declaration before passing it to the parser.
- Isolate the application behind an egress proxy that denies arbitrary outbound requests to internal network ranges.
# Example hardening for Java DocumentBuilderFactory to prevent XXE
# Apply equivalent settings in the WeChatMessageController webHook parser
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
dbf.setFeature("http://xml.org/sax/features/external-general-entities", false);
dbf.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
dbf.setXIncludeAware(false);
dbf.setExpandEntityReferences(false);
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

