CVE-2026-54249

Source
https://cve.org/CVERecord?id=CVE-2026-54249
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54249.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54249
Aliases
Published
2026-07-29T20:28:07Z
Modified
2026-08-19T12:55:44Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
VercelAIAdapter trusts client-controlled `providerMetadata` to construct `UploadedFile` — S3/GCS confused deputy via provider metadata injection
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54249.json"
}
References

Affected packages

Git / github.com/pydantic/pydantic-ai

Affected ranges

Type
GIT
Repo
https://github.com/pydantic/pydantic-ai
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*",
    "extracted_events": [
        {
            "introduced": "1.65.0"
        },
        {
            "fixed": "1.105.0"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

v1.*
v1.100.0
v1.101.0
v1.102.0
v1.103.0
v1.104.0
v1.65.0
v1.66.0
v1.67.0
v1.68.0
v1.69.0
v1.70.0
v1.72.0
v1.73.0
v1.74.0
v1.75.0
v1.76.0
v1.77.0
v1.78.0
v1.79.0
v1.80.0
v1.81.0
v1.82.0
v1.83.0
v1.84.0
v1.84.1
v1.85.0
v1.85.1
v1.86.0
v1.86.1
v1.87.0
v1.88.0
v1.89.0
v1.89.1
v1.90.0
v1.91.0
v1.92.0
v1.93.0
v1.94.0
v1.95.0
v1.95.1
v1.96.0
v1.96.1
v1.97.0
v1.98.0
v1.99.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54249.json"