Intel

AIKIDO-2026-654406

simpleeval is vulnerable to Sandbox Bypass

Sandbox BypassGHSA-7g86-mgxq-vq42 Published Yesterday

59

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 does not include the operator module's attrgetter, itemgetter, and methodcaller helpers in its disallowed-function list. When an evaluated expression can reach the operator module, chaining these helpers lets it access arbitrary attributes and invoke arbitrary methods, escaping the evaluator's restrictions. The patch adds attrgetter, itemgetter, methodcaller, and operator.call to the blocked functions set.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your evaluator exposes the operator module or its functions to evaluated expressions.

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