SCA: security update for ouroboros-ai (GHSA-c4m7-2gwp-vw76)

high Tenable Cloud Security Plugin ID 442476

Description

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

- Ouroboros is a local-first runtime for AI coding agents that records their actions and applies user-
defined policies to constrain behavior. In versions prior to 0.39.0, if a user clones a malicious
repository and runs Ouroboros commands within that directory, it can lead to arbitrary code execution and
potential system takeover. The vulnerability stems from Ouroboros loading the .env file from the current
working directory. Execution-affecting environment variables such as OUROBOROS_CLI_PATH,
OPENCODE_CLI_PATH, and other backend selectors are accepted directly from this local .env. An attacker can
include a malicious script in the repository and point the CLI path variable to it (e.g.,
OUROBOROS_CLI_PATH=./malicious_script.sh). When the user executes a command like ouroboros init or any
command that instantiates the adapter, the malicious script is executed instead of the intended CLI. This
issue has been fixed in version 0.39.0. (CVE-2026-47211)

Solution

Update the ouroboros-ai library and its related packages to version 0.39.0 or later.

See Also

https://github.com/advisories/GHSA-c4m7-2gwp-vw76

Plugin Details

Severity: High

ID: 442476

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 5/30/2026

Updated: 8/4/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.92

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-47211

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

CVSS v4

Risk Factor: High

Base Score: 8.4

Threat Score: 5.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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-47211

cwe: CWE-426