Arviser

CrewAI and AG2: four advisories where a limit you set did less than its name (GHSA-wp6h, GHSA-whf5)

From the record.

Facts

Alert note
KB-N-0005 · AI applications
Record published
2026-11-19 · GHSA-wp6h-6xxh-g8fp published by CrewAI, the first of the four records · source
Fix
2026-10-23 · crewai 1.15.29 on PyPI, with the LanceDB filter escaping · source
Fix
2026-10-27 · crewai and crewai-tools 1.15.31 on PyPI · source
Fix
2026-11-19 · crewai-files 1.15.44 on PyPI · source
Fix
2026-11-22 · ag2 1.3.4 released · source
Record published
2026-11-22 · AG2 advisories GHSA-whf5-5qcj-v9m8 and GHSA-3r6w-7pcg-c4x2 published · source
Record published
2026-11-23 · CrewAI advisory GHSA-r7cq-p8qg-7h3w published · source
GitHub advisory
GHSA-wp6h-6xxh-g8fp, GHSA-r7cq-p8qg-7h3w, GHSA-whf5-5qcj-v9m8, GHSA-3r6w-7pcg-c4x2, GHSA-4m42-h2gw-83m5
CWE
CWE-22, CWE-89, CWE-502
Records, CrewAI
GHSA-wp6h-6xxh-g8fp (deserialization guard, NL2SQLTool read-only mode, FilePath symlinks) and GHSA-r7cq-p8qg-7h3w (LanceDB memory filters), project advisories, no CVE; GHSA-r7cq says a CVE was requested
Records, AG2
GHSA-whf5-5qcj-v9m8 (RedisStream deserialization) and GHSA-3r6w-7pcg-c4x2 (ACP "ask" approval), project advisories, no CVE
Related
GHSA-4m42-h2gw-83m5, AG2 ACP allow_terminal=False not enforced, high, published 2026-11-29
Severity
All high in the project advisories. GHSA-r7cq: CVSS 3.1 7.6. GHSA-wp6h: no score. GHSA-whf5: CVSS 3.1 8.1. GHSA-3r6w: CVSS 3.1 7.5 in the record, and the reporter's text calls it "conditional High, effectively Medium"
Affected
crewai before 1.15.29 (GHSA-r7cq); crewai and crewai-tools up to 1.15.30, crewai-files up to 1.15.43 (GHSA-wp6h); ag2 0.12.2 to 1.3.3 and autogen 0.12.2 to 0.14.1 (GHSA-whf5); ag2 1.0.0b0 to 1.3.3 (GHSA-3r6w)
Fixed
crewai 1.15.29 (2026-10-23) and 1.15.31 (2026-10-27), crewai-tools 1.15.31, crewai-files 1.15.44 (2026-11-19); ag2 1.3.4 (2026-11-22). No fixed autogen version in the record. For NL2SQLTool, see the fix section
Exploited
No CVE, so not eligible for CISA KEV; the KEV catalog 2026.11.30 has no CrewAI, AG2 or AutoGen entry
In scanner databases
None of the four in the GitHub global database or OSV, and no PyPI vulnerability entry for the affected versions we queried, at 2026-12-01 06:24 UTC
Checked
2026-12-01 06:24 UTC
Next review
2026-12-08

What happened

CrewAI and AG2 are Python frameworks for the same job: several LLM agents that share tools and pass work to each other. If you are picking one, you have probably read about both. Between 19 and 23 November each project published two high-severity advisories. None has a CVE yet.

Read side by side, the four records tell one story. In each, the developer had turned on something meant to limit what an agent can do, and it limited less than its name says:

You set What the advisory says happened Record
CrewAI NL2SQLTool with allow_dml=False, the default read-only mode Three ways of writing a statement got DELETE and other writes past the check GHSA-wp6h, item 2
CrewAI CREWAI_DESERIALIZE_CALLBACKS left unset, so saved data may not import code Restoring a saved tool still imported the Python module named in the data GHSA-wp6h, item 1
CrewAI crewai-files symlink containment A symlinked parent folder, or a sibling folder whose name starts with the working folder's name, passed the check GHSA-wp6h, item 3
CrewAI memory scopes per tenant, default LanceDB backend Scope and record id values went into SQL filters unescaped, so an authenticated user could read or delete other scopes' records when the scope came from input a tenant can influence GHSA-r7cq
AG2 RedisStream, storing events as JSON, its default A tool result carrying a __dataclass__ key made AG2 import and call a Python class when it read the history back GHSA-whf5
AG2 ACP client with permission_policy="ask", the default One "yes", even a typed allow_once, picked the agent's "always allow" option when the agent listed it first, as the advisory says Gemini CLI does GHSA-3r6w

If you are choosing between the two frameworks, these records do not decide it. In our reading, both had a path where data turned into running Python code (CrewAI from saved tool data, AG2 from tool results stored in Redis), and both had a limit that let more through than it said. Which features you use decides your exposure, not which framework. Our advice: treat a framework's switch as the second lock, and put the first where the framework cannot widen it: a database login that can only read, a tenant id the server sets, a container that holds only the files the agent may read.

CrewAI shipped its fixes before it published. crewai 1.15.29 (memory) reached PyPI on 23 October, a month before its advisory, and 1.15.31 on 27 October. If you update often, you already had them. If you pin versions, the advisory was the signal, and on 1 December at 06:24 UTC none of the four IDs was in the GitHub global advisory database or OSV, and PyPI listed no vulnerability for crewai 1.15.28, crewai-tools 1.15.30, crewai-files 1.15.43 or ag2 1.3.3. Dependency scanners that read those sources reported nothing for these records.

Who is affected

Am I affected?

Run this with the Python your application runs, in its virtual environment or container:

python -m pip show crewai crewai-tools crewai-files ag2 autogen 2>&1 | grep -E '^(Name|Version|WARNING)'

What the result means:

Then find which features your code uses:

grep -rnE 'NL2SQLTool|allow_dml|CREWAI_DESERIALIZE_CALLBACKS|FilePath|RedisStream|ACPConfig|ACPRemoteConfig|permission_policy|allow_terminal' --include='*.py' .

A hit shows where the feature is used. No hit means could not tell: tools can come from YAML configuration, settings from environment variables, and code from other repositories. For CrewAI memory, look at where the scope value comes from: a value a request can set is the case GHSA-r7cq describes.

Fix, and what the upgrade does not do

CrewAI. Upgrade each installed package of crewai, crewai-tools and crewai-files to 1.15.44 or later. The three are released together with the same version numbers; the latest is 1.15.47, of 30 November.

What changes:

One gap the upgrade may not close. The advisory says the NL2SQLTool cases are fixed in 1.15.31. We read nl2sql_tool.py in crewai-tools 1.15.30, 1.15.31 and 1.15.47. The 1.15.31 change closes the comment case. The two checks the advisory names for its other two cases, the AS ( pattern and the EXPLAIN option match, are the same in 1.15.47 as in 1.15.30. The tool commits only when allow_dml=True, so in read-only mode a statement that passes the check runs in a transaction the tool does not commit. We did not run either case against a database, so what a given database keeps from such a statement is not established. Give the tool a database login that can only read, whatever version you run.

What the upgrade does not do: memory records another tenant already read or deleted stay read or deleted, and code that ran while restoring a checkpoint stays run. The advisory adds: "Applications should keep tenant identifiers under server control."

AG2. Upgrade ag2 to 1.3.4 (22 November) or later. In 1.3.4, a plain "yes" picks the one-time option, "always" or allow_always picks the remembered one, and a "yes" to an agent that offers no one-time option refuses. The human is now asked through a structured request (ACPPermissionRequest) instead of a text line ending "Allow? (yes/no)", so a custom input hook may see a different message. Tool results whose keys collide with AG2's type markers are stored wrapped and come back as plain dictionaries.

If you use ACP with allow_terminal=False, 1.3.4 is not enough. A fifth AG2 advisory, GHSA-4m42-h2gw-83m5 (high, CVSS 3.1 7.1, published 29 November), says that setting was only announced to the agent and not enforced up to 1.3.4. Its record lists no fixed version, but the 1.4.0 release notes name it, and bridge.py in 1.4.0 checks the setting. 1.4.0 has breaking changes: OpenAIConfig now uses the Responses API and sends store=True by default, Anthropic needs anthropic>=2, and several Agent arguments are removed. Its migration guide lists them.

What the upgrade does not do:

For autogen 0.12.2 to 0.14.1 the record names no fix. Its PyPI page points to the ag2ai/ag2classic repository, and the AG2 README says pip install ag2 no longer ships the autogen import name.

Sources

Primary records first. Record identifiers link from the facts box. Opened 2026-12-01 between 06:20 and 06:40 UTC. Only records, releases, registry data and source code were read; nothing was run against either framework. GitHub advisory data: CC BY 4.0.

Records and release notes

Vendor documentation and statements

Corrections

No corrections.

Report an error to contact@arviser.com.

How this page was made: Claude Opus 5.5, an AI model, wrote this note from the sources listed, reading records, releases and source code only. A separate session re-verified the NL2SQLTool claim directly against the advisory text and the current source code, and confirmed it. Vadim Nareyko decided how to handle that claim; he did not review the rest of the text before publication.

Text and data on this page: CC BY 4.0. Quoted third-party material keeps its own terms.

Request a security review