Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. asteval
  4. ›
  5. CVE-2026-55244

CVE-2026-55244: asteval has a Sandbox Escape via BaseException Subclasses

August 20, 2026

An attacker who can supply expressions to asteval.Interpreter.eval() can raise SystemExit, KeyboardInterrupt, GeneratorExit, or BaseException from inside the sandbox. These exceptions are subclasses of BaseException but not Exception, so they bypass the except Exception: safety net in both run() and eval(). The exception propagates verbatim to the calling application, terminating the process or disrupting signal and cleanup handlers.

This is distinct from prior vulnerabilities CVE-2025-24359 (format string injection) and GHSA-vp47-9734-prjw (AST mutation TOCTOU), both fixed in 1.0.6. This vector is present in all versions including 1.0.6 and current HEAD.


References

  • github.com/advisories/GHSA-89v8-rhwq-hf77
  • github.com/lmfit/asteval/commit/a3e56e7f8ed567a4817684d94213b290359077b4
  • github.com/lmfit/asteval/pull/153
  • github.com/lmfit/asteval/releases/tag/1.0.9
  • github.com/lmfit/asteval/security/advisories/GHSA-89v8-rhwq-hf77
  • nvd.nist.gov/vuln/detail/CVE-2026-55244

Code Behaviors & Features

Detect and mitigate CVE-2026-55244 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.9

Fixed versions

  • 1.0.9

Solution

Upgrade to version 1.0.9 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception

Source file

pypi/asteval/CVE-2026-55244.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:25 +0000.