{"id":"CVE-2026-114386","published":"2026-10-21T12:39:43Z","modified":"2026-10-21T19:55:49Z","title":"Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code","vendor":"pydantic","product":"pydantic-ai-harness","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00465,"percentile":0.32321,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/pull/10362","tags":["issue-tracking","patch"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/eb27b2b89fe76ae23ee9b6fc9eb4b227a4967949","tags":["patch"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.59.0","tags":["release-notes"]},{"url":"https://github.com/pydantic/pydantic-ai/blob/v2.58.0/src/pydantic_ai_harness/pydantic_ai_harness/code_mode/_toolset.py#L642-L680","tags":["technical-description"]},{"url":"https://pypi.org/project/pydantic-ai-harness/0.59.0/","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/pydantic-ai-harness-before-0.59.0-codemode-tool-call-limit-bypass-via-run-code","tags":["third-party-advisory"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":6.46},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai-harness","versions":["< 0.59.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-21T19:55:43.280737Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai-harness","vulnerableRanges":["<0.59.0"],"patched":["0.59.0"],"from":["GHSA-3589-pxp7-3gj8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-107233","exploited":false,"provenance":"source"}}