CVE-2026-107294 json
Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl
published 2026-10-08 32 d ago modified 2026-10-15 25 d ago also EUVD-2026-95104 , GHSA-v2xh-2vp8-57h8 , PYSEC-2026-4280 , PYSEC-2026-4289
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pydantic-ai 1.107.2, 2.24.0
- pypi pydantic-ai-slim 1.107.2, 2.24.0
- pydantic pydantic_ai 1.107.2, 2.24.0
- pydantic pydantic_ai_slim 1.107.2, 2.24.0
- github.com/pydantic/pydantic-ai@7a64d04 commit
- github.com/pydantic/pydantic-ai@e3824a5 commit
- github.com/pydantic/pydantic-ai#7141 pull request
- github.com/pydantic/pydantic-ai#7308 pull request
- github.com/pydantic/pydantic-ai/releases/tag/v1.107.2 release
- github.com/pydantic/pydantic-ai/releases/tag/v2.24.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-107294 updated cvss 6.5
pydantic-ai: pydantic-ai: Denial of Service via unbounded HTTP response buffering
-
Red Hat Lightspeed Core lightspeed-core/lightspeed-stack-rhel9 Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 31 d ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pydantic-ai | >=1.77.0, <1.107.2 >=2.0.0b1, <2.24.0 |
1.107.2 2.24.0 |
| pypi | pydantic-ai-slim | >=1.77.0, <1.107.2 >=2.0.0b1, <2.24.0 |
1.107.2 2.24.0 |
Affected products
- pydantic pydantic-ai
- pydantic pydantic-ai-slim
Classification
References
-
github.com
/pydantic/pydantic-ai/pull/7141
web, patch, issue-tracking
-
github.com
/pydantic/pydantic-ai/pull/7308
web, patch, issue-tracking
-
github.com
/pydantic/pydantic-ai/commit/7a64d049c3f5271a975cd1d64b2fa876d83ede1d
web, patch
-
github.com
/pydantic/pydantic-ai/commit/e3824a58c82864ed26afb2887619834a4eb86cc8
web, patch
-
github.com
/pydantic/pydantic-ai/releases/tag/v1.107.2
web, patch, release-notes
-
github.com
/pydantic/pydantic-ai/releases/tag/v2.24.0
web, patch, release-notes, vendor-advisory
-
github.com
/pydantic/pydantic-ai/security/advisories/GHSA-v2xh-2vp8-57h8
web, vendor-advisory
-
github.com
/pydantic/pydantic-ai
package
-
pypi.org
/project/pydantic-ai
package
-
github.com
/advisories/GHSA-v2xh-2vp8-57h8
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-107294
advisory
-
pypi.org
/project/pydantic-ai-slim
package
Sources
- CVE List CVE-2026-107294
- GitHub Advisory GHSA-v2xh-2vp8-57h8
- NVD CVE-2026-107294
- OSV PYSEC-2026-4280
- OSV PYSEC-2026-4289
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.