{"id":"CVE-2026-107294","published":"2026-10-08T16:59:25Z","modified":"2026-10-09T15:15:18Z","title":"Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl","vendor":"pydantic","product":"pydantic-ai","tier":"tail","description":{"text":"Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.77.0 until 1.107.2 and 2.24.0, web_fetch_tool, the WebFetch local fallback, and remote FileUrl media downloads buffer the complete HTTP response body before enforcing content-size controls. An attacker-influenced URL can stream an arbitrarily large response that exhausts process memory and crashes the worker; affected media types include ImageUrl, DocumentUrl, VideoUrl, and AudioUrl. SSRF protections remain effective, and the impact is limited to availability. This issue is fixed in versions 1.107.2 and 2.24.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00616,"percentile":0.4376,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v2xh-2vp8-57h8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7141","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7308","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.24.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.75},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai","versions":[">= 1.77.0, < 1.107.2",">= 2.0.0b1, < 2.24.0"]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[">= 1.77.0, < 1.107.2",">= 2.0.0b1, < 2.24.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-08T20:23:19.119515Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai","vulnerableRanges":[">=1.77.0, <1.107.2",">=2.0.0b1, <2.24.0"],"patched":["1.107.2","2.24.0"],"from":["GHSA-v2xh-2vp8-57h8","PYSEC-2026-4280"],"provenance":"source"},{"ecosystem":"PyPI","package":"pydantic-ai-slim","vulnerableRanges":[">=1.77.0, <1.107.2",">=2.0.0b1, <2.24.0"],"patched":["1.107.2","2.24.0"],"from":["GHSA-v2xh-2vp8-57h8","PYSEC-2026-4289"],"provenance":"source"}],"summary":{"text":"The Pydantic AI framework (pydantic-ai) has a flaw in its web_fetch_tool, its WebFetch local fallback, and its remote FileUrl media downloads, which buffer entire HTTP response bodies in memory before enforcing size limits. An attacker who can influence the URL that is fetched, which requires low privileges and no user interaction, can cause an arbitrarily large response to exhaust process memory and crash the worker, with the impact limited to availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:01Z"},"euvd":{"id":"EUVD-2026-95104","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pydantic-ai-cve-2026-25580","parents":[{"from":"CVE-2026-25580","to":"CVE-2026-107294","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/_ssrf.py","pydantic_ai_slim/pydantic_ai/models/__init__.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8","https://github.com/pydantic/pydantic-ai/commit/d398bc9d39aecca6530fa7486a410d5cce936301"],"basis":"shared function","functions":["download_item"]}]},{"from":"CVE-2026-107287","to":"CVE-2026-107294","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/common_tools/web_fetch.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/2b247add4950bef61d352e7ca8aefbd20539180c","https://github.com/pydantic/pydantic-ai/commit/2fd38792693da00a3ca5412aeffb436787af3545","https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8"],"basis":"shared function","functions":["__call__"]}]},{"from":"CVE-2026-107288","to":"CVE-2026-107294","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/_ssrf.py","pydantic_ai_slim/pydantic_ai/common_tools/web_fetch.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/490335f8e2322e143a79337ddca9410e0176c812","https://github.com/pydantic/pydantic-ai/commit/a9dab92099d0ef9d5d4aa34ccac8a6f1b0e51284","https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8"],"basis":"shared function","functions":["WebFetchLocalTool","safe_download","web_fetch_tool"]}]},{"from":"CVE-2026-107290","to":"CVE-2026-107294","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/common_tools/web_fetch.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/2faa6181d8a17d83bc9516d035c5270db8730fa0","https://github.com/pydantic/pydantic-ai/commit/9cdc952e4c3319e85a3e04f2de49fbbb765bd38b","https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8"],"basis":"shared function","functions":["__call__"]}]}],"packageHistory":[{"cve":"CVE-2026-46678","published":"2026-07-29","fixed":"1.99.0","kev":false},{"cve":"CVE-2026-48782","published":"2026-06-16","fixed":"2.0.0b3","kev":false},{"cve":"CVE-2026-54249","published":"2026-07-29","fixed":"2.0.0b6","kev":false,"link":{"from":"CVE-2026-54249","to":"CVE-2026-107294","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.106.0","toFixed":"1.107.2","daysApart":71},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.0.0b6","toFixed":"2.24.0","daysApart":71}]}},{"cve":"CVE-2026-107294","published":"2026-10-08","fixed":"2.24.0","kev":false},{"cve":"CVE-2026-107293","published":"2026-10-08","fixed":"2.27.1","kev":false,"link":{"from":"CVE-2026-107294","to":"CVE-2026-107293","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.2","toFixed":"1.107.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.24.0","toFixed":"2.27.1","daysApart":0}]}},{"cve":"CVE-2026-107295","published":"2026-10-08","fixed":"2.28.0","kev":false,"link":{"from":"CVE-2026-107294","to":"CVE-2026-107295","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"1.107.2","toFixed":"1.107.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai-slim","fromFixed":"1.107.2","toFixed":"1.107.4","daysApart":0}]}},{"cve":"CVE-2026-107292","published":"2026-10-08","fixed":"2.30.0","kev":false}],"package":"PyPI:pydantic-ai"}}