CVE-2026-114386 PUBLISHED

Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code

Assigner: VulnCheck
Reserved: 21.10.2026 Published: 21.10.2026 Updated: 21.10.2026

Pydantic AI Harness before 0.59.0 fails to enforce UsageLimits.tool_calls_limit on nested tool calls dispatched from run_code in the CodeMode toolset. Users or prompt-injected content can make the sandboxed program invoke tools via run_nested_call() without check_before_tool_call, exceeding operator limits on costly or side-effecting tools.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
CVSS Score: 6.3

Product Status

Vendor pydantic
Product pydantic-ai-harness
Versions Default: unaffected
  • affected from 0 to 0.59.0 (excl.)

Credits

  • CBF finder

References

Problem Types

  • Allocation of Resources Without Limits or Throttling CWE