Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-57120 EUVD-2026-77541GHSA-pv2j-rghr-v5r9PYSEC-2026-3533

PraisonAI: execute_code sandbox bypass: str.format C-level attribute access reads every blocklisted dunder

Published Sep 14, 2026 · Updated Sep 16, 2026 · Assigned by GitHub_M

Description

PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.59, execute_code sandbox mode permits runtime assembly of blocklisted dunder names and allows str.format or str.format_map to resolve dotted fields through C-level attribute access that bypasses _safe_getattr. This exposes class, qualified-name, base-class, globals, and object-dictionary attributes to prompt-influenced code when approval is automatically granted, producing a high-impact read primitive without establishing a complete in-process execution chain. This issue is fixed in praisonaiagents 1.6.59.

Affected products

VendorProductAffectedFixed
MervinPraison praisonaiagents < 1.6.59 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI praisonaiagents < 1.6.59 1.6.59 GHSA-pv2j-rghr-v5r9

References