CVE-2026-133421

Source
https://cve.org/CVERecord?id=CVE-2026-133421
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133421.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-133421
Aliases
  • GHSA-jfv7-ghgv-gx4x
Published
2026-11-20T07:33:56Z
Modified
2026-11-20T09:00:09Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Quadratic time timedelta validation in Pydantic V1
Details

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.

Database specific
{
    "cna_assigner": "Pydantic",
    "cwe_ids": [
        "CWE-1333"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133421.json"
}
References

Affected packages

Git / github.com/pydantic/pydantic

Affected ranges

Type
GIT
Repo
https://github.com/pydantic/pydantic
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last Affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "last_affected": "1.10.26"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "62791e66a9f8f118e465ed760c9e2ede9ae3055e"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v2.14.2",
            "range": [
                {
                    "fixed": "aa540acc29960fb394312cf97d888c99f9686814"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

V0.*
V0.17
core-v2.*
core-v2.42.0
core-v2.43.0
core-v2.44.0
core-v2.45.0
core-v2.46.0
core-v2.48.0
core-v2.49.0
core-v2.50.0
core-v2.50.1
v0.*
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.1
v0.10
v0.11
v0.11.1
v0.11.2
v0.12
v0.12.1
v0.13
v0.13.1
v0.14
v0.15
v0.16
v0.16.1
v0.18
v0.18.1
v0.18.2
v0.19
v0.2
v0.2.1
v0.20
v0.20.1
v0.20a1
v0.21
v0.22
v0.23
v0.24
v0.25
v0.26
v0.27
v0.28
v0.29
v0.3
v0.30
v0.30.1
v0.31
v0.31.1
v0.32
v0.4
v0.5
v0.6
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.7
v0.7.1
v0.8
v0.9
v0.9.1
v1.*
v1.0
v1.0b1
v1.0b2
v1.1
v1.10.0
v1.10.0a1
v1.10.0a2
v1.10.0b1
v1.10.1
v1.10.10
v1.10.11
v1.10.12
v1.10.13
v1.10.14
v1.10.18
v1.10.19
v1.10.2
v1.10.20
v1.10.21
v1.10.22
v1.10.23
v1.10.24
v1.10.25
v1.10.26
v1.10.3
v1.10.4
v1.10.5
v1.10.6
v1.10.7
v1.10.8
v1.10.9
v1.10a1
v1.2
v1.3
v1.4
v1.5
v1.5.1
v1.6
v1.6.1
v1.7
v1.7.1
v1.7.2
v1.8
v1.8.1
v1.9.0
v1.9.0a1
v1.9.0a2
v2.*
v2.0
v2.0.1
v2.0.2
v2.0.3
v2.0a1
v2.0a2
v2.0a3
v2.0a4
v2.0b1
v2.0b2
v2.0b3
v2.1.0
v2.1.1
v2.10.0b1
v2.10.0b2
v2.11.0
v2.11.0a1
v2.11.0a2
v2.11.0b1
v2.11.0b2
v2.11.1
v2.11.2
v2.11.3
v2.12.0
v2.12.0a1
v2.12.0b1
v2.13.0
v2.13.0b1
v2.13.0b2
v2.13.0b3
v2.14.0
v2.14.0a1
v2.14.0b1
v2.14.0b2
v2.14.1
v2.2.0
v2.2.1
v2.2.2
v2.3.0
v2.4.0
v2.4.1
v2.4.2
v2.5.0
v2.5.0b1
v2.6.0b1
v2.7.0
v2.7.0b1
v2.7.1
v2.8.0
v2.8.0b1
v2.9.0
v2.9.0b1
v2.9.0b2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133421.json"