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=Falsenot 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
crewaibefore 1.15.29 (GHSA-r7cq);crewaiandcrewai-toolsup to 1.15.30,crewai-filesup to 1.15.43 (GHSA-wp6h);ag20.12.2 to 1.3.3 andautogen0.12.2 to 0.14.1 (GHSA-whf5);ag21.0.0b0 to 1.3.3 (GHSA-3r6w)- Fixed
crewai1.15.29 (2026-10-23) and 1.15.31 (2026-10-27),crewai-tools1.15.31,crewai-files1.15.44 (2026-11-19);ag21.3.4 (2026-11-22). No fixedautogenversion 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
- GHSA-r7cq:
crewaibefore 1.15.29, with the default LanceDB memory backend and memory scopes built from input a tenant can influence. - GHSA-wp6h: item 1,
crewaiup to 1.15.30, when it loads checkpoints or other saved data you did not create; item 2,crewai-toolsup to 1.15.30, withNL2SQLToolin read-only mode; item 3,crewai-filesup to 1.15.43, with untrusted paths or symlinks under the working folder (the advisory gives no other workaround). - GHSA-whf5:
ag20.12.2 to 1.3.3 withRedisStreamand tool results or agent input that carry structured data from a less trusted source. The advisory says the defaultMemoryStreamdid not run the payload. It also lists theautogenpackage 0.12.2 to 0.14.1, with no fixed version. - GHSA-3r6w:
ag21.0.0b0 to 1.3.3 with theacpextra,permission_policy="ask", and an ACP agent that lists "always allow" before "allow once".
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:
crewaibelow 1.15.29,crewai-toolsorcrewaiat 1.15.30 or below,crewai-filesat 1.15.43 or below,ag2at 1.3.3 or below: inside the record's range. Open if you use the feature listed above for that record.autogen0.12.2 to 0.14.1: inside the range, and the record gives no version to move to.- A version above these: outside the four records' ranges. For
NL2SQLTool, read the next section. WARNING: Package(s) not foundfor a name: it is not installed in this environment. Other virtual environments, images and lock files are separate checks.
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:
- Restoring a saved tool whose class lives outside
crewaiandcrewai_tools, and is not already imported in the process, now stops with "Refusing to resolve tool type". Checkpoints with your own tool classes needCREWAI_DESERIALIZE_CALLBACKS=1, and the error message adds: "Only enable this for trusted checkpoint data." - In read-only mode,
NL2SQLToolrefuses any statement that contains--or/*, and#on MySQL and MariaDB, even inside a quoted string. crewai-fileschecks containment only when a symlink is in the path. The advisory says plain absolute paths outside the working folder "remain allowed". The 1.15.44 release notes say "Enforce cwd containment for all FilePath paths"; the code does not do that.
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:
- An "always allow" an agent received before the upgrade lives in that agent's session, per GHSA-3r6w. Our advice: restart ACP sessions started on an older version.
- History already stored in Redis stays. In 1.3.4, reading a stored
__dataclass__entry that names a class which is not a dataclass raises an error instead of calling it. Our advice: review or clear streams that older versions wrote from tool data. - Code that already ran stays run.
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
- Project advisory GHSA-wp6h-6xxh-g8fp, crewAIInc/crewAI, accessed 2026-12-01
- Project advisory GHSA-r7cq-p8qg-7h3w, crewAIInc/crewAI, accessed 2026-12-01
- Project advisory GHSA-whf5-5qcj-v9m8, ag2ai/ag2, accessed 2026-12-01
- Project advisory GHSA-3r6w-7pcg-c4x2, ag2ai/ag2, accessed 2026-12-01
- Project advisory GHSA-4m42-h2gw-83m5, ag2ai/ag2, accessed 2026-12-01
- CrewAI commit 40bb2d3b5, "escape scope and id values in LanceDB filters" (#7820), accessed 2026-12-01
- CrewAI, nl2sql_tool.py at 1.15.47, accessed 2026-12-01
- CrewAI, compare 1.15.30...1.15.31, accessed 2026-12-01
- CrewAI, compare 1.15.43...1.15.44, accessed 2026-12-01
- CrewAI release 1.15.44, accessed 2026-12-01
- AG2, compare v1.3.3...v1.3.4, accessed 2026-12-01
- AG2 release v1.4.0, with breaking changes and GHSA-4m42, accessed 2026-12-01
- AG2, ag2/acp/bridge.py at v1.4.0, accessed 2026-12-01
- PyPI, crewai, accessed 2026-12-01
- PyPI, crewai-tools, accessed 2026-12-01
- PyPI, crewai-files, accessed 2026-12-01
- PyPI, ag2, accessed 2026-12-01
- PyPI, autogen, accessed 2026-12-01
- GitHub global advisory API, the four GHSA IDs, 404 for each of the four IDs at our check, accessed 2026-12-01
- OSV API, the four GHSA IDs, 404 for each of the four IDs at our check, accessed 2026-12-01
- CISA Known Exploited Vulnerabilities catalog, JSON feed, catalog 2026.11.30, accessed 2026-12-01
Vendor documentation and statements
- AG2 README at v1.4.0, "AG2 Classic", accessed 2026-12-01
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.