{"data":{"id":"16b5408e-f9d4-4ca3-975c-59db96d0636e","title":"CVE-2026-114386: Pydantic AI Harness before 0.59.0 fails to enforce UsageLimits.tool_calls_limit on nested tool calls dispatched from…","summary":"Pydantic AI Harness before 0.59.0 does not 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.","solution":"Fixed in 0.59.0 (the source states the affected versions are those before 0.59.0; no further mitigation is described).","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-114386","publishedAt":"2026-10-21T13:18:28.613Z","cveId":"CVE-2026-114386","cweIds":["CWE-770"],"cvssScore":"4.8","cvssSeverity":"medium","severity":"medium","attackType":["prompt_injection","denial_of_service"],"issueType":"vulnerability","affectedPackages":["pydantic-ai-harness@< 0.59.0 (fixed: 0.59.0)"],"affectedPackageNames":["pydantic-ai-harness"],"affectedPackageRefs":["pypi:pydantic-ai-harness"],"affectedVendors":[],"affectedVendorsRaw":["Pydantic AI Harness","CodeMode toolset"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"Pydantic AI Harness tool call limit bypass via nested calls in run_code","headlinePromptVersion":"h1","cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L","attackVector":"network","attackComplexity":"high","privilegesRequired":"none","userInteraction":"none","exploitMaturity":"unknown","epssScore":0.00346,"epssPercentile":0.30204,"epssCheckedAt":"2026-12-03T18:26:58.995Z","epssHistory":null,"epss30dChange":null,"exploitUrls":null,"patchCommitUrls":["https://github.com/pydantic/pydantic-ai/commit/eb27b2b89fe76ae23ee9b6fc9eb4b227a4967949","https://github.com/pydantic/pydantic-ai/pull/10362"],"ssvcExploitation":"none","nvdStatus":"Awaiting Analysis","referencesCheckedAt":"2026-12-03T19:18:50.377Z","kevDateAdded":null,"advisoryAliases":["GHSA-3589-pxp7-3gj8"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-12-03T18:48:43.530Z","patchAvailable":true,"disclosureDate":"2026-10-21T13:18:28.613Z","fixReleasedAt":"2026-10-21T05:00:20.110Z","daysToFix":0,"fixCheckedAt":"2026-12-03T19:44:09.686Z","capecIds":["CAPEC-130"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["integrity","availability"],"aiComponentTargeted":"agent","llmSpecific":true,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":["AML.T0029","AML.T0051"],"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":["pydantic-ai-harness@0.59.0"],"affectedPurls":["pkg:pypi/pydantic-ai-harness"],"owaspLlmIds":["LLM01:2025","LLM10:2025"],"doi":null,"arxivId":null,"hasPublicExploit":false,"timeline":[{"event":"published","date":"2026-10-21","source":"record_source"},{"event":"fix_released","date":"2026-10-21","source":"package_registry"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[{"ecosystem":"pypi","name":"pydantic-ai-harness","fixedVersion":"0.59.0","matchedVersion":"0.59.0","fixReleasedAt":"2026-10-21T05:00:20.110Z","daysToFix":0,"match":"ecosystem","source":"registry","status":"found","checkedAt":"2026-12-03T19:44:09.683Z"}]}}