GHSA-MFX5-PC32-32M8
Harness private-key redaction can take exponential time on short input
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-MFX5-PC32-32M8 divulgada · CVSS 7.5 (GitHub) | |
| Remediación | Parche 0.66.0 | pydantic-ai-harness · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `private_key` pattern in Pydantic AI Harness's secret redaction backtracks exponentially on crafted text. A few hundred characters that begin like a private key can occupy the event loop for minutes or longer, delaying every other request and agent run in the process.
Details
This affects applications that use the guardrail detectors `redact_secrets` or `secret_data()` with the `private_key` pattern, which is included by default, on text an attacker can influence: user prompts checked by `InputGuardrail`, tool results checked by `ToolGuardrail`, or model output checked by `OutputGuardrail`. Synchronous guards run on the event loop.
The assumed attacker can send a prompt to the agent, or place text in content a tool returns.
Mitigation
Upgrade to a patched version of `pydantic-ai-harness`. Until then, leave the `private_key` pattern out by naming the patterns you need with `secret_data(only=[...])`.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic-ai-harness |
Corregida | 0.66.0 | 0 d | 0.71.0 no afectada |
0.66.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-mfx5-pc32-32m8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
