Skip to main content

Pydantic EUVDEUVD-2026-131094

| CVE-2026-133421 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-20 Pydantic
6.9
CVSS 4.0 · Vendor: Pydantic
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach endpoint deserializing untrusted input
  2. Exploit
    Submit long digit string to timedelta field
  3. Execution
    Trigger quadratic regex backtracking
  4. Impact
    Exhaust 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Pydantic 0 ≤1.10.26

Affected Packages

euvd pydantic no fix

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

Vendor (Pydantic) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (Pydantic).

CVSS VectorVendor: Pydantic

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.7%
Top 47% exploitable
Prevalence
High
pydantic is a very widely deployed Python validation library; exposure limited to V1 paths
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-55526 CRITICAL POC
9.1 Aug 26

n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w

CVE-2026-25580 HIGH POC
8.6 Feb 06

Pydantic AI versions 0.0.26 through 1.55.x contain a server-side request forgery vulnerability in URL download functiona

CVE-2024-3772 HIGH POC
7.5 Apr 15

Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service vi

CVE-2026-84381 HIGH
8.1 Sep 02

HTTPX2's SOCKS5 proxy implementation omits TLS negotiation for WebSocket Secure (wss://) origins, exposing the full WebS

CVE-2026-107295 HIGH
7.6 Oct 08

Cross-site request forgery in Pydantic AI's development web chat UI allows any website a developer happens to visit whil

CVE-2026-107286 HIGH
7.5 Oct 08

Concurrency slot exhaustion in Pydantic AI 2.10.0 through 2.52.x lets streamed model requests permanently occupy slots i

CVE-2026-133161 HIGH
7.5 Nov 19

Denial of service in Pydantic AI Harness (pydantic-ai-harness) 0.4.0 through 0.69.0 lets attacker-influenced tool output

CVE-2026-84382 HIGH
7.5 Sep 02

Memory exhaustion via unbounded decompression in HTTPX2 (all versions before 2.12.0) allows any HTTP server the client c

CVE-2021-29510 HIGH
7.5 May 13

Pydantic is a data validation and settings management using Python type hinting. Rated high severity (CVSS 7.5), this vu

CVE-2026-133422 MEDIUM
6.9 Nov 20

Denial of service in Pydantic V1 arises when an application validates attacker-supplied lists into a field constrained w

CVE-2026-48782 MEDIUM
6.8 Jun 16

Server-Side Request Forgery in Pydantic AI (versions 1.56.0-1.101.0, 2.0.0b1, 2.0.0b2) allows unauthenticated network at

CVE-2026-107289 MEDIUM
6.8 Oct 08

Server-side request forgery in Pydantic AI's URL-fetching guards lets an application that has explicitly opted a URL int

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy