verl is vulnerable to Code Injection
81
High Risk
The Qwen3 XML tool parser in the agent-loop rollout converts tool-call parameter values taken from model-generated output. When a parameter is typed as an array or another non-primitive type and cannot be decoded as JSON, the parser passes the raw value straight to Python eval(). Model output such as __import__("os").system(...) is therefore executed as Python during parsing, letting untrusted or externally influenced model output run arbitrary code on the training or rollout host. The fix replaces eval() with ast.literal_eval(), which only parses Python literals and degrades non-literal values to a string.
You are affected if you are using a version that falls within the vulnerable range and you run agent-loop rollouts that parse Qwen3 tool calls whose parameter values come from untrusted or externally influenced model output.
verl is vulnerable to Code Injection in versions 0.7.1 - 0.8.0.
Upgrade the verl library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.