{"id":"CVE-2026-114386","aliases":["CVE-2026-114386","GHSA-3589-pxp7-3gj8"],"related":[],"kind":"vulnerability","state":"published","title":"Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-21T12:39:43.886Z","modified":"2026-10-23T21:00:05.311Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.59.0","status":"affected"}],"vendor":"pydantic","product":"pydantic-ai-harness","repo":"https://github.com/pydantic/pydantic-ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.59.0"}],"ecosystem":"PyPI","package":"pydantic-ai-harness","purl":"pkg:pypi/pydantic-ai-harness","source":"ghsa"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/pull/10362","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/eb27b2b89fe76ae23ee9b6fc9eb4b227a4967949","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.59.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"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","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://pypi.org/project/pydantic-ai-harness/0.59.0/","tags":["product"],"sources":["cvelist","nvd"]},{"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","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114386","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pydantic/pydantic-ai","tags":["package"],"sources":["ghsa"]},{"url":"https://pypi.org/project/pydantic-ai-harness/0.59.0","tags":["web"],"sources":["ghsa"]}],"credits":["CBF"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-21T19:55:43.280Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114386","url":"https://www.cve.org/CVERecord?id=CVE-2026-114386","licence":"CVE Terms of Use","modified":"2026-10-21T19:55:49.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3589-pxp7-3gj8","url":"https://github.com/advisories/GHSA-3589-pxp7-3gj8","licence":"CC-BY-4.0","modified":"2026-10-23T21:00:05.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114386","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114386","licence":"Public domain","modified":"2026-10-22T17:39:56.760Z"}],"updatedAt":"2026-11-25T22:59:46.589Z","epss":{"score":0.00346,"percentile":0.30195,"date":"2026-12-01T12:00:22.000Z"}}