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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-18T13:55:29.000Z
- Modified: 2026-09-16T16:17:12.970Z
- Also known as: GHSA-pv2j-rghr-v5r9, PYSEC-2026-3533
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- MervinPraison praisonaiagents: < 1.6.59
- praisonaiagents (PyPI): before 1.6.59

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-pv2j-rghr-v5r9> (exploit, web)
- <https://github.com/MervinPraison/PraisonAI/commit/2adfe7e8323f6deec66925cf15a885b6238895e9>
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.59>
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonaiagents> (package)
- <https://github.com/advisories/GHSA-pv2j-rghr-v5r9> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-57120> (advisory)

## Sources

- CVE List: [CVE-2026-57120](https://www.cve.org/CVERecord?id=CVE-2026-57120), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-pv2j-rghr-v5r9](https://github.com/advisories/GHSA-pv2j-rghr-v5r9), CC-BY-4.0, modified 2026-07-23
- NVD: [CVE-2026-57120](https://nvd.nist.gov/vuln/detail/CVE-2026-57120), Public domain, modified 2026-09-16
- PyPA Advisory Database: [PYSEC-2026-3533](https://osv.dev/vulnerability/PYSEC-2026-3533), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-57120 · Whole record: https://cve.day/CVE-2026-57120.json · Rebuilt by cve.day 2026-11-25T22:59:38.281Z
