« Volver al listado

CVE-2026-54249

Estado: AnalizadaMedia (6.8)—

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.

Leer descripción completaMostrar menos

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

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2026-54249",
  "cveTags": [],
  "metrics": {
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2026-54249",
          "role": "CISA Coordinator",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "version": "2.0.3",
          "timestamp": "2026-07-30T13:08:03.344276Z"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "type": "Secondary",
        "source": "security-advisories@github.com",
        "cvssData": {
          "scope": "CHANGED",
          "version": "3.1",
          "baseScore": 6.8,
          "attackVector": "NETWORK",
          "baseSeverity": "MEDIUM",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N",
          "integrityImpact": "NONE",
          "userInteraction": "NONE",
          "attackComplexity": "HIGH",
          "availabilityImpact": "NONE",
          "privilegesRequired": "NONE",
          "confidentialityImpact": "HIGH"
        },
        "impactScore": 4,
        "exploitabilityScore": 2.2
      }
    ]
  },
  "affected": [
    {
      "source": "security-advisories@github.com",
      "affectedData": [
        {
          "vendor": "pydantic",
          "product": "pydantic-ai",
          "versions": [
            {
              "status": "affected",
              "version": ">= 1.65.0, < 1.106.0"
            },
            {
              "status": "affected",
              "version": ">= 2.0.0b1, < 2.0.0b6"
            }
          ]
        },
        {
          "vendor": "pydantic",
          "product": "pydantic-ai-slim",
          "versions": [
            {
              "status": "affected",
              "version": ">= 2.0.0b1, < 2.0.0b6"
            },
            {
              "status": "affected",
              "version": ">= 1.65.0, < 1.106.0"
            }
          ]
        }
      ]
    }
  ],
  "published": "2026-07-29T21:17:47.323",
  "references": [
    {
      "url": "https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w5gc-xj3w",
      "tags": [
        "Vendor Advisory"
      ],
      "source": "security-advisories@github.com"
    }
  ],
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "security-advisories@github.com",
      "description": [
        {
          "lang": "en",
          "value": "CWE-918"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    }
  ],
  "lastModified": "2026-08-04T13:22:03.630",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:*:*:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "5D7A39AC-6B48-468C-8FE1-4E5FEEA9B693",
              "versionEndExcluding": "1.105.0",
              "versionStartIncluding": "1.65.0"
            },
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta1:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "7F40BA40-4529-43DA-A120-BD18300297A0"
            },
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta2:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "9CA57AD6-2B0E-4DCB-A2B7-902A1E65CA1C"
            },
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta3:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "C334714F-3BEC-460A-8D91-C520714F697C"
            },
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta4:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "B5ECE52B-4D6F-45F8-8130-325E92442852"
            },
            {
              "criteria": "cpe:2.3:a:pydantic:pydantic_ai:2.0.0:beta5:*:*:*:python:*:*",
              "vulnerable": true,
              "matchCriteriaId": "2FA7C8EF-F233-4DC7-8E03-A29245CD97BF"
            }
          ],
          "operator": "OR"
        }
      ]
    }
  ],
  "sourceIdentifier": "security-advisories@github.com"
}