Langroid Allows XXE Injection via XMLToolMessage
CVE-2025-46726 · GHSA-pw95-88fg-3j6f · published 2025-05-05
- Severity
- High
- CVSS score
- 7.8
- Chance of exploitation (EPSS)
- 0.66%
- Fixed in
- 0.53.4
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A LLM application leveraging XMLToolMessage class may be exposed to untrusted XML input that could result in DoS and/or exposing local files with sensitive information.
Upgrade langroid to 0.53.4 or later.
Langroid 0.53.4 initializes XMLParser with flags to prevent XML External Entity (XXE), billion laughs, and external DTD attacks by disabling entity resolution, DTD loading, and network access. https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langroid | PyPI | < 0.53.4 | 0.53.4 |
- CriticalLMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.pylmdeploy
- CriticalLMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploylmdeploy
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- CriticalLangroid: Neo4jChatAgent executes LLM-generated Cypher without validation (prompt-to-Cypher injection; config-conditional RCE), mirroring thlangroid
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- CriticalLangroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgentlangroid
- CriticalLangroid has Prompt to SQL Injection, Leading to RCElangroid
- CriticalLangroid has WAF Bypass Leading to RCE in TableChatAgentlangroid
- CriticalLangroid has a Code Injection vulnerability in TableChatAgentlangroid
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.