{"id":"CVE-2026-107294","state":"PUBLISHED","title":"Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl","description":"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.","publishedAt":"2026-10-08T16:59:25.246Z","updatedAt":"2026-10-09T15:15:18.765Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pydantic pydantic-ai","pydantic pydantic-ai-slim"],"affected":[{"vendor":"pydantic","product":"pydantic-ai","versions":[{"version":">= 1.77.0, < 1.107.2","status":"affected"},{"version":">= 2.0.0b1, < 2.24.0","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[{"version":">= 1.77.0, < 1.107.2","status":"affected"},{"version":">= 2.0.0b1, < 2.24.0","status":"affected"}]}],"references":["https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v2xh-2vp8-57h8","https://github.com/pydantic/pydantic-ai/pull/7141","https://github.com/pydantic/pydantic-ai/pull/7308","https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8","https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.2","https://github.com/pydantic/pydantic-ai/releases/tag/v2.24.0"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/107xxx/CVE-2026-107294.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-107294","state":"PUBLISHED","datePublished":"2026-10-08T16:59:25.246Z","dateUpdated":"2026-10-09T15:15:18.765Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-07T15:53:23.586Z"},"containers":{"cna":{"title":"Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pydantic","product":"pydantic-ai","versions":[{"version":">= 1.77.0, < 1.107.2","status":"affected"},{"version":">= 2.0.0b1, < 2.24.0","status":"affected"}]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[{"version":">= 1.77.0, < 1.107.2","status":"affected"},{"version":">= 2.0.0b1, < 2.24.0","status":"affected"}]}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-v2xh-2vp8-57h8","name":"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","name":"https://github.com/pydantic/pydantic-ai/pull/7141","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/7308","name":"https://github.com/pydantic/pydantic-ai/pull/7308","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","name":"https://github.com/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8","name":"https://github.com/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v1.107.2","name":"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","name":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.24.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-08T16:59:25.246Z"},"source":{"advisory":"GHSA-v2xh-2vp8-57h8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-08T20:23:19.119515Z","id":"CVE-2026-107294","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-09T15:15:18.765Z"}}]}}}