CVE-2026-114386
published medium CVSS 4.0 · 6.3Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pydantic | — | pydantic-ai-harness0 to < 0.59.0 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.8 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pydantic | pydantic-ai-harness | 0 to < 0.59.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-770 Allocation of Resources Without Limits or Throttling
References
6- 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
- pydantic-ai-harness v2.59.0 Release Notes https://github.com/pydantic/pydantic-ai/releases/tag/v2.59.0
- https://pypi.org/project/pydantic-ai-harness/0.59.0/
- VulnCheck Advisory: Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code https://www.vulncheck.com/advisories/pydantic-ai-harness-before-0.59.0-codemode-tool-call-limit-bypass-via-run-code
Provider assertions
2VulnCheck · cna
Pydantic AI Harness before 0.59.0 CodeMode Tool Call Limit Bypass via run_code
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e5301cee352444b53da8eb03cfdd943a7f5c46aa1e0c8bfa94e2aaa1da478156
- Ingested
- 21 Oct 2026, 19:59:47 UTC
- Source record
- Official CVE record