Skip to content
FlawDB
Sign in

CVE-2026-141554

LOW 3.1

AG2 SandboxShellTool: files hidden with `ignore` are still readable through recursive `grep` / `diff` in readonly mode

Also known as GHSA-xhqj-2fcc-8vf7

AI summary AI generated

An attacker can read files hidden by ignore rules in AG2 SandboxShellTool through recursive grep or diff commands in readonly mode, exposing ignored files in tool output.

Mitigation

  • Upgrade ag2 to 1.3.4 or later.

Who should check

  • Projects that depend on PyPI package ag2 (>= 0.13.3, <= 1.3.3)
  • Projects that depend on PyPI package autogen (>= 0.13.3, <= 0.14.1)
  • Anyone running ag2ai ag2 >= 0.13.3, < 1.3.4
  • Anyone running ag2ai autogen >= 0.13.3, <= 0.14.1

Vulnerability facts

Affected
ag2 >= 0.13.3, <= 1.3.3; autogen >= 0.13.3, <= 0.14.1
Fixed in
1.3.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
3.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: None
CWE
CWE-863
Published
Modified

Description

AG2 is an open-source AgentOS. From 0.13.3 until 1.3.4, SandboxShellTool configured with readonly=True and ignore can return ignored files when an allowed recursive grep, egrep, fgrep, or diff opens files inside a directory, including the implicit current directory. ShellAdapter._filter() in ag2/tools/sandbox/adapter/shell.py calls check_ignore() in ag2/tools/sandbox/filter.py, which checks paths written in the command but not files discovered by the program. An agent processing attacker-controlled content may issue such a command and expose the files in the tool result; disclosure to the attacker additionally requires an output channel in the deployment. This issue is fixed in version 1.3.4.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI ag2>= 0.13.3, <= 1.3.31.3.4ghsa
PyPI autogen>= 0.13.3, <= 0.14.1—ghsa
ag2ai ag2>= 0.13.3, < 1.3.4—cvelist
ag2ai autogen>= 0.13.3, <= 0.14.1—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: ag2 From 0.13.3 until 1.3.4 From 0.13.3 until 1.3.4
  • Fixed: ag2 1.3.4 This issue is fixed in version 1.3.4.

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-141554. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141554.md
Affected: ag2 >= 0.13.3, <= 1.3.3; autogen >= 0.13.3, <= 0.14.1
Fixed in: 1.3.4

Steps:
1. Search this machine and project for ag2 (PyPI), autogen (PyPI), ag2ai ag2, ag2ai autogen: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-141554 being exploited?

There is no confirmed exploitation: CVE-2026-141554 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-141554?

Low: CVSS 3.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-141554?

ag2 >= 0.13.3, <= 1.3.3; autogen >= 0.13.3, <= 0.14.1.

Is there a fix for CVE-2026-141554?

Yes. Fixed in 1.3.4. Upgrade ag2 to 1.3.4 or later.

How do I check if I'm affected by CVE-2026-141554?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
HIGH 8.8CVE-2026-113663

AG2: Newline injection in SandboxShellTool bypasses allowed=[...] and readonly=True, enabling arbitrary command execution

PyPI packages
EPSS 48%
Sponsors