CVE-2026-133505 Tool result data shaped like a file is rebuilt as a file download or provider file reference when message history is reloaded
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
When message history is serialized and loaded again, a tool result that contains a JSON object in the serialized shape of one of Pydantic AI's file types is rebuilt as that file. A third party who controls data a tool returns, such as a record that an MCP server or a function tool returns from an external system, can use this to make the application download a URL on its local network, or make the model provider read an s3:// object or uploaded file with the application's credentials. Applications are affected when tool results can contain third-party data, message history containing those results is serialized and loaded again (stored history, history a UI adapter holds on the server, or Temporal, DBOS or Prefect durable execution), and the model is one Pydantic AI downloads files for, one that honors force_download, or one whose provider resolves non-HTTP file URLs or uploaded files. History that a client submits through the Vercel AI or AG-UI adapter in the default mode is not affected. The issue is fixed in pydantic-ai and pydantic-ai-slim 1.107.10 and 2.66.0.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat exploit_intelligence 0) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| pypi pydantic-ai(PyPI) | >= 1.50.0, <= 1.107.9; >= 2.0.0b1, <= 2.65.0 | after 1.107.9, 2.65.0 | Fixed |
| pypi pydantic-ai-slim(PyPI) | >= 1.50.0, <= 1.107.9; >= 2.0.0b1, <= 2.65.0 | after 1.107.9, 2.65.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pydantic-ai(PyPI) | >= 1.50.0, <= 1.107.9 | No fix listed |
| pypi pydantic-ai(PyPI) | >= 2.0.0b1, <= 2.65.0 | No fix listed |
| pypi pydantic-ai-slim(PyPI) | >= 1.50.0, <= 1.107.9 | No fix listed |
| pypi pydantic-ai-slim(PyPI) | >= 2.0.0b1, <= 2.65.0 | No fix listed |
| redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
References
- github.com vendor-advisory
- pydantic.dev
- ENISA EUVD EUVD-2026-131095 third-party-advisory
- nvd.nist.gov
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2577861 issue-tracking
- www.cve.org