{"id":"CVE-2026-57120","published":"2026-09-14T14:48:14Z","modified":"2026-09-16T15:07:09Z","title":"PraisonAI: execute_code sandbox bypass: str.format C-level attribute access reads every blocklisted dunder","vendor":"MervinPraison","product":"praisonaiagents","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00555,"percentile":0.39928,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-pv2j-rghr-v5r9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/2adfe7e8323f6deec66925cf15a885b6238895e9","tags":["x_refsource_MISC"]},{"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.59","tags":["x_refsource_MISC"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":7.99},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"praisonaiagents","versions":["< 1.6.59"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-16T15:06:45.768056Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"praisonaiagents","vulnerableRanges":["<1.6.59"],"patched":["1.6.59"],"from":["GHSA-pv2j-rghr-v5r9","PYSEC-2026-3533"],"provenance":"source"}],"summary":{"text":"PraisonAI's praisonaiagents package, in its execute_code sandbox mode, contains a flaw where str.format and str.format_map resolve dotted fields through C-level attribute access that bypasses the _safe_getattr protection, and blocklisted dunder names can be assembled at runtime. An attacker who can influence the code run by the agent over the network, with low privileges, and where approval is automatically granted, can read sensitive attributes such as class, globals, and object-dictionary contents, though this does not by itself establish a complete in-process execution chain.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:51Z"},"euvd":{"id":"EUVD-2026-77541","exploited":false,"provenance":"source"}}