Bug 2577860 (CVE-2026-133421)

Summary: CVE-2026-133421 pydantic: pydantic: Denial of Service via crafted ISO 8601 duration strings
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alinfoot, anpicker, ansingla, aprice, bbrownin, blitton, brasmith, cahl, cmyers, cochase, dfreiber, dkeler, dnakabaa, dranck, drow, dtrifiro, dymurray, eborisov, ebourniv, ehelms, gbenhaim, gtanzill, hasun, ilpinto, jburrell, jbuscemi, jfula, jlanda, jmitchel, jowilson, jpasqual, jsamir, juwatts, kaycoth, kgaikwad, kshier, lball, lblicha, lcouzens, ljawale, ltomasbo, mhayden, mhulan, msilmser, mwoodson, ngough, niyer, nyancey, oezr, ogajduse, ometelka, osousa, prwatson, ptisnovs, rbobbitt, rchan, rhel-process-autobot, sbunciak, sdoran, simaishi, smallamp, stcannon, suppawar, syedriko, tguha, thason, twaugh, veshanka, vkumar, watson-tool-maintainers, weaton, xdharmai, yguenane, ykashtan, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in pydantic. A remote attacker can cause a Denial of Service (DoS) by supplying a specially crafted ISO 8601 duration string to an application validating time interval (timedelta) fields. Due to an inefficient regular expression used to parse duration strings, repetitive numerical patterns trigger excessive backtracking and prolonged processing times. This high computational load can exhaust system resources and render the application unresponsive.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2578050, 2578051    
Bug Blocks:    

Description OSIDB Bzimport 2026-11-20 07:41:26 UTC
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.