{"cve":"CVE-2026-54249","nvd":{"published":"2026-07-29T21:17:47.323","modified":"2026-08-04T13:22:03.630","status":"Analyzed","description":"Pydantic AI is a Python agent framework for building Generative AI applications. In versions 1.65.0 through 1.105.0, and 2.0.0b1 through 2.0.0b5, a client that submits message history to a Pydantic AI UI adapter (such as the Vercel AI adapter) can reference arbitrary files in the application's model-provider or cloud-storage account. While file URL parts are validated against a scheme allowlist, UploadedFile references — which point to a file by provider file ID or cloud-storage URI (e.g. s3://…, gs://…) — were forwarded without validation. Because the provider resolves an UploadedFile using the server-side identity (IAM role, service account, or provider API key) rather than the client's, an attacker can craft message history to make the server read objects from its own account or other tenants, given a referenceable identifier. Exploitation requires a valid file identifier, which is not always unguessable depending on how the application names objects. This issue has been fixed in versions 1.106.0 and 2.0.0b6.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8},"cwes":["CWE-918"],"references":["https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w"],"products":["pydantic:pydantic_ai"],"source":"nvd","synced_at":"2026-10-19T22:46:40.600842820+00:00"},"epss":{"cve":"CVE-2026-54249","score":0.00315,"percentile":0.24437,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h7p7-w5gc-xj3w","url":"https://osv.dev/vulnerability/GHSA-h7p7-w5gc-xj3w","summary":"Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials","modified":"2026-08-19T12:55:44.916270032Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.65.0 <1.106.0"],"fixed":["1.106.0"]},{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=2.0.0b1 <2.0.0b6"],"fixed":["2.0.0b6"]},{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.65.0 <1.106.0"],"fixed":["1.106.0"]},{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=2.0.0b1 <2.0.0b6"],"fixed":["2.0.0b6"]}]},{"id":"PYSEC-2026-3692","url":"https://osv.dev/vulnerability/PYSEC-2026-3692","summary":"Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials","modified":"2026-08-19T12:55:44.916270032Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai","purl":"pkg:pypi/pydantic-ai","ranges":[">=1.65.0 <1.106.0",">=2.0.0b1 <2.0.0b6"],"fixed":["1.106.0","2.0.0b6"]}]},{"id":"PYSEC-2026-3693","url":"https://osv.dev/vulnerability/PYSEC-2026-3693","summary":"Pydantic AI: Unvalidated UploadedFile references in UI adapters allow server-side file access using the application's credentials","modified":"2026-08-19T12:55:44.916270032Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-slim","purl":"pkg:pypi/pydantic-ai-slim","ranges":[">=1.65.0 <1.106.0",">=2.0.0b1 <2.0.0b6"],"fixed":["1.106.0","2.0.0b6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}