CVE-2026-141554

Description

A flaw was found in ag2, where the sandbox shell tool fails to properly restrict access to ignored files during recursive directory operations. A remote attacker can exploit this issue by supplying crafted content to an automated agent, causing it to execute shell commands that scan directory contents. Successful exploitation allows restricted files inside the sandbox to be returned in command outputs, leading to unauthorized information disclosure.

Statement

This vulnerability is rated as Low severity because successful exploitation requires specific non-default tool configurations and an active output channel to exfiltrate data. When AG2 agent shell sandboxing is configured to ignore specific paths while running in read-only mode, recursive directory inspection commands can bypass path filtering and access restricted files within the sandbox. The issue only impacts environments running AG2 agent execution workflows with specific command allowances, limiting the overall security exposure.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score3.1N/A3.1
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ARequired
ScopeUnchangedN/AUnchanged
ConfidentialityLowN/ALow
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Understanding the Weakness (CWE)

Confidentiality,Integrity

Technical Impact: Read Files or Directories; Modify Files or Directories

Frequently Asked Questions

Want to get errata notifications? Sign up here.