Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach endpoint deserializing untrusted input
-
ExploitSubmit long digit string to timedelta field
-
ExecutionTrigger quadratic regex backtracking
-
ImpactExhaust CPU, denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application validate attacker-controlled (untrusted) string input into a timedelta model field using Pydantic V1 - either pydantic 1.x at or below 1.10.26, or the pydantic.v1 compatibility namespace within Pydantic V2 before 2.14.2. Native Pydantic V2 validation is not affected, so a service using only V2 models is out of scope. Per the CVSS vector (PR:N/UI:N) no authentication or user interaction is needed, but limiting factors are: the attacker must reach an endpoint that deserializes untrusted strings into a timedelta field, and effective CPU exhaustion requires sending inputs on the order of tens of kilobytes of digits. |
| Impact | This is a genuine but moderate-priority availability issue, not a high-CVSS-but-no-real-risk inflation. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms a network-reachable, low-complexity, unauthenticated trigger with no attack requirements, but impact is availability-only (VA:L, VC:N/VI:N) - a CPU-exhaustion denial of service via quadratic regex backtracking (CWE-1333), with no path to code execution or data exposure. The vuln.today decision label is 'this_month', not act_now or emergency, which is consistent with the DoS-only impact. No EPSS score and no KEV listing were provided in the input, and there is no confirmed public exploit code - so there is no evidence of active exploitation; this should be treated as a predictable, easily reproduced reliability/DoS risk rather than a breach vector. The practical caveat is scope: although the CPE lists pydantic broadly, the GHSA advisory and commit make clear the defect lives only in the Pydantic V1 ISO 8601 duration parser, so real risk is confined to code paths that validate untrusted input into timedelta fields using Pydantic V1 (or the pydantic.v1 namespace under Pydantic V2) - verify whether your service actually uses that path before prioritizing. |
| Exploit ScenarioDerived | An attacker submits an API request whose body maps to a timedelta model field validated by Pydantic V1, supplying a duration-like string of a few dozen kilobytes of digits (e.g. 'P' followed by a long run of digits). The unescaped '.' in iso8601_duration_re causes the repeated groups to overlap and the regex engine to backtrack in quadratic time, consuming seconds of CPU per request and exhausting server resources under modest request volume. No public exploit code is referenced, but the advisory fully describes the trigger, making reproduction trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Quadratic-time validation of untrusted ISO 8601 duration strings in Pydantic V1 lets remote attackers exhaust CPU by submitting inputs on the order of tens of kilobytes of digits to any endpoint that coerces user-supplied strings into a timedelta field. Affected are pydantic 1.x through 1.10.26 and, within Pydantic V2, code that uses the pydantic.v1 compatibility namespace before 2.14.2; native V2 validation is out of scope. Per the CVSS vector (PR:N/UI:N) no authentication or user interaction is required, though the attacker must reach a timedelta-parsing endpoint; impact is limited to availability. No public exploit code was identified at time of analysis, and this is assessed as a moderate-priority availability issue rather than an emergency.
RemediationAI
Upgrade the pydantic package: V1 users should move to 1.10.27, and users of the pydantic.v1 namespace inside Pydantic V2 should upgrade to 2.14.2 or later as directed by the release notes at https://github.com/pydantic/pydantic/releases/tag/v2.14.2; full details are in advisory GHSA-jfv7-ghgv-gx4x (https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x). Until the upgrade is deployed, apply an upstream-equivalent fix by escaping the dots in the iso8601_duration_re pattern (\d+(\.\d+)? in the days, hours, minutes and seconds groups) via a vendored patch or monkeypatch, with the trade-off that this forks the library and must be reconciled at the next upgrade. Alternatively, enforce a hard input-length limit on any request field that is later parsed into a timedelta, sized well below the tens of kilobytes needed for measurable CPU exhaustion - rejecting oversized strings returns a validation error rather than spending quadratic time - but this is a compensating control only and must be applied at every ingestion point, including nested and bulk payloads, since a single unguarded path remains exploitable. Applications that only use native Pydantic V2 models need no change for this issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pydantic V1 parses ISO 8601 duration strings with the compiled regular expression iso8601_duration_re in pydantic/datetime_parse.py. Each component group is written as \d+(.\d+)? - the decimal point is unescaped, so the dot also matches any digit and the optional fractional group can consume the same digits as the leading \d+ run. On a long digit-only string the repeated day/hour/minute/second groups overlap and the regex engine backtracks combinatorially, producing quadratic validation time (CWE-1333, inefficient regular expression complexity; ReDoS). The upstream fix (commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e) escapes the dots as \.\d+ across all four duration groups and adds pytest-timeout to the test dependencies to catch regressions. Because the flaw lives in the V1 parsing code, the same weak expression is shipped inside the pydantic.v1 namespace of Pydantic V2, so V2 installations that import V1 models inherit the behaviour even though native V2 validation never uses this path. The trigger is reached only when an untrusted string is validated into a timedelta field; other field types and trusted constant inputs do not exercise the expression.
Know when Pydantic gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable untrusted input with no authentication or interaction (AV:N/AC:L/PR:N/UI:N) causing only CPU-exhaustion availability impact (A:L), with no confidentiality or integrity effect and unchanged scope.
Primary rating from Vendor (Pydantic).
CVSS VectorVendor: Pydantic
DescriptionCVE.org
Validating an untrusted ISO 8601 duration string into a timedelta field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate.
The iso8601_duration_re regular expression used to parse ISO 8601 durations (in pydantic/datetime_parse.py) contains an unescaped ".", which also matches digits. On a string of digits, the repeated groups overlap and the regex engine backtracks in quadratic time.
The issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Pydantic AI versions 0.0.26 through 1.55.x contain a server-side request forgery vulnerability in URL download functiona
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service vi
HTTPX2's SOCKS5 proxy implementation omits TLS negotiation for WebSocket Secure (wss://) origins, exposing the full WebS
Cross-site request forgery in Pydantic AI's development web chat UI allows any website a developer happens to visit whil
Concurrency slot exhaustion in Pydantic AI 2.10.0 through 2.52.x lets streamed model requests permanently occupy slots i
Denial of service in Pydantic AI Harness (pydantic-ai-harness) 0.4.0 through 0.69.0 lets attacker-influenced tool output
Memory exhaustion via unbounded decompression in HTTPX2 (all versions before 2.12.0) allows any HTTP server the client c
Pydantic is a data validation and settings management using Python type hinting. Rated high severity (CVSS 7.5), this vu
Denial of service in Pydantic V1 arises when an application validates attacker-supplied lists into a field constrained w
Server-Side Request Forgery in Pydantic AI (versions 1.56.0-1.101.0, 2.0.0b1, 2.0.0b2) allows unauthenticated network at
Server-side request forgery in Pydantic AI's URL-fetching guards lets an application that has explicitly opted a URL int
EUVD-2026-131094
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB