Intel

AIKIDO-2026-769825

simpleeval is vulnerable to Sandbox Bypass

Sandbox BypassGHSA-v7m3-47hp-2wqw Published Yesterday

42

Medium Risk

This Affects:

PYTHONsimpleeval
0.0.1 - 1.0.7
Fixed in 1.0.8
Are you affected? Scan for Free

TL;DR

simpleeval's disallowed-function check inspects lists and tuples passed into an evaluated expression but skips set and frozenset members. An expression that hides a blocked function such as os.system inside a set literal or built-in reaches _check_disallowed_items without triggering the block. Evaluators that expose set-typed values to untrusted expressions can therefore smuggle a disallowed function past the sandbox. The fix extends the disallowed-items scan to cover set and frozenset containers.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you allow evaluated expressions to construct or receive set or frozenset values.

Background info

simpleeval is vulnerable to Sandbox Bypass in versions 0.0.1 - 1.0.7.

How to fix this

Upgrade the simpleeval library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform