{"cve":"CVE-2026-114386","nvd":{"published":"2026-10-21T13:18:28.613","modified":"2026-10-22T17:39:56.760","status":"Awaiting Analysis","description":"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.","cvss_v4":{"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},"cvss_v3":{"version":"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},"cwes":["CWE-770"],"references":["https://github.com/pydantic/pydantic-ai/blob/v2.58.0/src/pydantic_ai_harness/pydantic_ai_harness/code_mode/_toolset.py#L642-L680","https://github.com/pydantic/pydantic-ai/commit/eb27b2b89fe76ae23ee9b6fc9eb4b227a4967949","https://github.com/pydantic/pydantic-ai/pull/10362","https://github.com/pydantic/pydantic-ai/releases/tag/v2.59.0","https://pypi.org/project/pydantic-ai-harness/0.59.0/"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-114386","score":0.00346,"percentile":0.27929,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-3589-pxp7-3gj8","url":"https://osv.dev/vulnerability/GHSA-3589-pxp7-3gj8","summary":"Pydantic AI Harness tool-call limit bypass in nested CodeMode calls","modified":"2026-10-23T21:00:05.311948379Z","packages":[{"ecosystem":"PyPI","name":"pydantic-ai-harness","purl":"pkg:pypi/pydantic-ai-harness","ranges":["<0.59.0"],"fixed":["0.59.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}