inspect-ai is vulnerable to Remote Code Execution (RCE)
98
Critical Risk
The math() scorer passes normalized model answer text to SymPy's parse_expr() to check mathematical equivalence. Because parse_expr() evaluates its input, a model completion containing a crafted expression such as ().__class__.__base__.__subclasses__() runs arbitrary Python on the machine executing the evaluation. Untrusted model output therefore reaches code execution on the evaluator host, outside any sample sandbox. The fix parses answers with a non-evaluating grammar, enforces size and complexity limits, rejects code-shaped answers, and runs parsing in a time-bounded worker thread.
You are affected if you are using a version that falls within the vulnerable range and you score evaluations with the math() scorer against untrusted or adversarial model output.
inspect-ai is vulnerable to Remote Code Execution (RCE) in versions 0.3.184 - 0.3.255.
Upgrade the inspect-ai 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.