langroid is vulnerable to Code Injection
98
CVE Score
Critical
Code Injection
CSVGraphAgent.pandas_to_kg executes fully LLM-generated Cypher through write_query without the validate_cypher_query and allow_dangerous_operations gating applied to the agent's other Cypher handlers. Input that influences the prompt, including CSV contents embedded verbatim into the system message, can drive arbitrary Cypher under the agent's Neo4j role. This allows full graph read and exfiltration, destructive writes, LOAD CSV from a remote URL, and configuration-conditional code execution where APOC or dbms procedures are enabled. The fix routes this handler through the same validation gate as the other Cypher tools.
Upgrade the langroid library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use CSVGraphAgent against a Neo4j instance with untrusted CSV data or prompt-influenced input.
0.0.1 - 0.65.10
Fixed in 0.65.11langroid is vulnerable to Code Injection in versions 0.0.1 - 0.65.10.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.