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

Published Sep 14, 2026
·
Updated

PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.59, executecode sandbox mode permits runtime assembly of blocklisted dunder names and allows str.format or str.formatmap to resolve dotted fields through C-level attribute access that bypasses safegetattr. 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 Software

1 affected component
praisonaiagents<1.6.59

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade praisonaiagents to a version that resolves this vulnerability.

    Fixed in 1.6.59

Event History

Sep 14, 2026
CVE Published
via MITRE·02:48 PM
Data Sourced
via MITRE·02:48 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using praisonaiagents versions earlier than 1.6.59 are affected when execute_code sandbox mode is used and approval is automatically granted. The exposed data includes class, qualified-name, base-class, globals, and object-dictionary attributes available to prompt-influenced code.

2

What access does an attacker need?

An attacker needs the ability to influence code evaluated through execute_code sandbox mode. No user interaction is required, but exploitation depends on automatic approval being enabled; the vulnerability description does not establish a complete in-process code-execution chain.

3

What can be done if upgrading is not immediately possible?

Avoid automatically granting approval for execute_code sandbox requests, particularly for code influenced by prompts or untrusted input. This removes the stated condition under which the read primitive is exposed.

4

How can this be remediated?

Upgrade praisonaiagents to version 1.6.59, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203