Bug 2578051 - CVE-2026-133421 python-pydantic: pydantic: Denial of Service via crafted ISO 8601 duration strings [fedora-all]
Summary: CVE-2026-133421 python-pydantic: pydantic: Denial of Service via crafted ISO ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pydantic
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Maxwell G
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["d81ee152-7030-47f7-8da2-f...
Depends On:
Blocks: CVE-2026-133421
TreeView+ depends on / blocked
 
Reported: 2026-11-20 11:15 UTC by Avinash Hanwate
Modified: 2026-11-20 11:15 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2026-11-20 11:15:44 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.


Note You need to log in before you can comment on or make changes to this bug.