CVE-2026-54249
Pydantic AI es un framework de agentes en Python para crear aplicaciones de IA generativa. En las versiones desde la 1.65.0 hasta la 1.105.0, y desde la 2.0.0b1 hasta la 2.0.0b5, un cliente que envía historial de mensajes a un adaptador de UI de Pydantic AI (como el adaptador Vercel AI) puede referenciar archivos arbitrarios en la cuenta del proveedor de modelos o de almacenamiento en la nube de la aplicación.
Leer descripción completaMostrar menos
Aunque las partes de URL de archivo se validan contra una lista de esquemas permitidos, las referencias UploadedFile —que apuntan a un archivo mediante el ID de archivo del proveedor o un URI de almacenamiento en la nube (p. ej., s3://…, gs://…)— se reenviaban sin validación. Dado que el proveedor resuelve un UploadedFile usando la identidad del lado del servidor (rol de IAM, cuenta de servicio o clave de API del proveedor) en lugar de la del cliente, un atacante puede manipular el historial de mensajes para hacer que el servidor lea objetos de su propia cuenta o de otros inquilinos, siempre que disponga de un identificador referenciable. La explotación requiere un identificador de archivo válido, que no siempre es imposible de adivinar, según cómo nombre la aplicación los objetos. Este problema se ha corregido en las versiones 1.106.0 y 2.0.0b6.
Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Última modificación del registro en NVD
Tecnologías afectadas (1)
Registro NVD
- Estado en NVD
- Analizada
- Publicada
- 29 jul 2026
- Última modificación
- 4 ago 2026
- Vector CVSS
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
- Debilidad (CWE)
- CWE-918
Referencias
- Aviso del fabricantegithub.com/pydantic/pydantic-ai/security/advisories/GHSA-h7p7-w…
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"
}