SCA: security update for PraisonAI, praisonaiagents (GHSA-4mr5-g6f9-cfrh)

critical Tenable Cloud Security Plugin ID 442545

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version
1.6.40 of praisonaiagents, `execute_code()` in `praisonaiagents/tools/python_tools.py` (v1.6.37,
subprocess sandbox mode) can be fully bypassed using `print.__self__` to retrieve the real Python
`builtins` module, from which `__import__` can be extracted via `vars()` and runtime string construction.
This achieves arbitrary OS command execution on the host, completely defeating the sandbox. This is a
novel bypass that survives all patches for CVE-2026-39888 (frame traversal), CVE-2026-34938 (str
subclass), and CVE-2026-40158 (`type.__getattribute__` trampoline). PraisonAI version 4.6.40 and
praisonaiagents version 1.6.40 contain an updated fix. (CVE-2026-47392)

Solution

Update the praisonaiagents library and its related packages to version 1.6.40 or later.

See Also

https://github.com/advisories/GHSA-4mr5-g6f9-cfrh

Plugin Details

Severity: Critical

ID: 442545

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 5/30/2026

Updated: 7/22/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.36

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-47392

CVSS v3

Risk Factor: Critical

Base Score: 9.9

Temporal Score: 8.6

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/29/2026

Vulnerability Publication Date: 5/29/2026

Reference Information

CVE: CVE-2026-47392