GHSA-v2xh-2vp8-57h8: Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl
- Identifiers
- CVE-2026-107294GHSA-v2xh-2vp8-57h8
- Published
- Record updated
- Affected
- pydantic-ai-slim >= 2.0.0b1, <= 2.23.0, fixed in 2.24.0, released August 4, 2026, 64 days before disclosure
- pydantic-ai-slim >= 1.77.0, < 1.107.2, fixed in 1.107.2, released August 7, 2026, 61 days before disclosure
- pydantic-ai >= 2.0.0b1, <= 2.23.0, fixed in 2.24.0, released August 4, 2026, 64 days before disclosure
- and 1 more
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Pydantic AI's local web-fetch tool (`web_fetch_tool`, or the `WebFetch` capability's local fallback) and its `FileUrl` media downloads (`ImageUrl`, `DocumentUrl`, `VideoUrl`, `AudioUrl`) read the entire HTTP response body into memory before applying any size limit. An application that exposes the web-fetch tool to untrusted prompts can be driven to fetch a URL that streams a very large body, exhausting process memory and crashing the worker. The issue affects availability only; SSRF protections remain in place and there is no confidentiality or integrity impact.
Mitigation
Upgrade to `2.24.0` or later (v2) or `1.107.2` or later (v1). Patched versions enforce a default 50 MiB cap on web-fetch and `FileUrl` downloads while streaming; pass `None` to the limit to restore the previous unbounded behavior.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 8 tracked dependents
Related items
- MediumCVE-2026-54038: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.9, GET…Similar attack · NVD/CVE Database
- MediumCVE-2026-54045: LibreChat password reset request deletes pending email verification tokensSimilar attack · NVD/CVE Database
- MediumCVE-2026-114499: codebase-memory-mcp gitignore matcher exponential backtracking stalls indexingSimilar attack · NVD/CVE Database
- MediumCVE-2026-114497: codebase-memory-mcp provides local code intelligence for developers and AI agents through a persistent graph and MCP…Similar attack · NVD/CVE Database
- HighCVE-2026-114494: codebase-memory-mcp query_graph stack overflow via oversized Cypher RETURNSimilar attack · NVD/CVE Database