CVE-2026-133421 (GCVE-0-2026-133421)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:21
VLAI
EPSS
VEX
Title
Quadratic time timedelta validation in Pydantic V1
Summary
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.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:21 UTC
CWE
- CWE-1333 - Inefficient Regular Expression Complexity
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133421",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:21:24.256887Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:21:34.429Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://pypi.org",
"defaultStatus": "unaffected",
"packageName": "pydantic",
"product": "pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "pydantic",
"versions": [
{
"lessThanOrEqual": "1.10.26",
"status": "affected",
"version": "0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "edibleShell"
},
{
"lang": "en",
"type": "finder",
"value": "SounLabs"
},
{
"lang": "en",
"type": "finder",
"value": "iamibi"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eValidating an untrusted ISO 8601 duration string into a \u003ccode\u003etimedelta\u003c/code\u003e field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45\"\u003e\u003ccode\u003eiso8601_duration_re\u003c/code\u003e\u003c/a\u003e regular expression used to parse ISO 8601 durations (in \u003ccode\u003epydantic/datetime_parse.py\u003c/code\u003e) contains an unescaped \u003ccode\u003e.\u003c/code\u003e, which also matches digits:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003eiso8601_duration_re = re.compile(\n r\u0027^(?P\u0026lt;sign\u0026gt;[-+]?)\u0027\n r\u0027P\u0027\n r\u0027(?:(?P\u0026lt;days\u0026gt;\\d+(.\\d+)?)D)?\u0027\n r\u0027(?:T\u0027\n r\u0027(?:(?P\u0026lt;hours\u0026gt;\\d+(.\\d+)?)H)?\u0027\n r\u0027(?:(?P\u0026lt;minutes\u0026gt;\\d+(.\\d+)?)M)?\u0027\n r\u0027(?:(?P\u0026lt;seconds\u0026gt;\\d+(.\\d+)?)S)?\u0027\n r\u0027)?\u0027\n r\u0027$\u0027\n)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eOn a string of digits, the repeated groups overlap and the regex engine backtracks in quadratic time.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e\"\u003e62791e66a9f8f118e465ed760c9e2ede9ae3055e\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eIf you are relying on the \u003ccode\u003epydantic.v1\u003c/code\u003e namespace in Pydantic V2, upgrade to \u003ca href=\"https://github.com/pydantic/pydantic/releases/tag/v2.14.2\"\u003eV2.14.2\u003c/a\u003e or later.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eDenial of service through validation of untrusted input. Affected are applications validating untrusted strings into \u003ccode\u003etimedelta\u003c/code\u003e fields.\u003c/p\u003e"
}
],
"value": "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.\n\nThe 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.\n\nThe issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"vectorString": "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",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:56.729Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45"
},
{
"url": "https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-jfv7-ghgv-gx4x",
"discovery": "UNKNOWN"
},
"title": "Quadratic time timedelta validation in Pydantic V1"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133421",
"datePublished": "2026-11-20T07:33:56.729Z",
"dateReserved": "2026-11-19T19:25:01.883Z",
"dateUpdated": "2026-11-20T17:21:34.429Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-133421",
"date": "2026-11-22",
"epss": "0.00824",
"percentile": "0.58308"
},
"microsoft_vex": {
"current_release_date": "2026-11-20T18:17:23.000Z",
"cve": "CVE-2026-133421",
"id": "msrc_CVE-2026-133421",
"initial_release_date": "2026-11-20T18:17:23.000Z",
"product_status:under_investigation": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "Quadratic time timedelta validation in Pydantic V1",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-133421.json",
"version": "1"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"collectionURL": "https://pypi.org",
"defaultStatus": "unaffected",
"packageName": "pydantic",
"product": "pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "pydantic",
"versions": [
{
"lessThanOrEqual": "1.10.26",
"status": "affected",
"version": "0",
"versionType": "python"
}
]
}
],
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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.\n\nThe 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.\n\nThe issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields."
}
],
"id": "CVE-2026-133421",
"lastModified": "2026-11-20T18:18:47.700",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-133421",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:21:24.256887Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-11-20T08:18:32.037",
"references": [
{
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45"
},
{
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"url": "https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e"
},
{
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
},
{
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x"
}
],
"sourceIdentifier": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"vulnStatus": "Received",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-1333"
}
],
"source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"type": "Secondary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-20T11:56:14+00:00",
"cve": "CVE-2026-133421",
"id": "CVE-2026-133421",
"initial_release_date": "2026-11-20T07:33:56.729000+00:00",
"product_status:known_affected": "133",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "pydantic: pydantic: Denial of Service via crafted ISO 8601 duration strings",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-133421.json",
"version": "3"
},
"vulnrichment": {
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133421",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:21:24.256887Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:21:30.508Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://pypi.org",
"defaultStatus": "unaffected",
"packageName": "pydantic",
"product": "pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "pydantic",
"versions": [
{
"lessThanOrEqual": "1.10.26",
"status": "affected",
"version": "0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "edibleShell"
},
{
"lang": "en",
"type": "finder",
"value": "SounLabs"
},
{
"lang": "en",
"type": "finder",
"value": "iamibi"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eValidating an untrusted ISO 8601 duration string into a \u003ccode\u003etimedelta\u003c/code\u003e field with Pydantic V1 takes quadratic time: an input of a few dozen kilobytes takes seconds to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45\"\u003e\u003ccode\u003eiso8601_duration_re\u003c/code\u003e\u003c/a\u003e regular expression used to parse ISO 8601 durations (in \u003ccode\u003epydantic/datetime_parse.py\u003c/code\u003e) contains an unescaped \u003ccode\u003e.\u003c/code\u003e, which also matches digits:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003eiso8601_duration_re = re.compile(\n r\u0027^(?P\u0026lt;sign\u0026gt;[-+]?)\u0027\n r\u0027P\u0027\n r\u0027(?:(?P\u0026lt;days\u0026gt;\\d+(.\\d+)?)D)?\u0027\n r\u0027(?:T\u0027\n r\u0027(?:(?P\u0026lt;hours\u0026gt;\\d+(.\\d+)?)H)?\u0027\n r\u0027(?:(?P\u0026lt;minutes\u0026gt;\\d+(.\\d+)?)M)?\u0027\n r\u0027(?:(?P\u0026lt;seconds\u0026gt;\\d+(.\\d+)?)S)?\u0027\n r\u0027)?\u0027\n r\u0027$\u0027\n)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eOn a string of digits, the repeated groups overlap and the regex engine backtracks in quadratic time.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e\"\u003e62791e66a9f8f118e465ed760c9e2ede9ae3055e\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eIf you are relying on the \u003ccode\u003epydantic.v1\u003c/code\u003e namespace in Pydantic V2, upgrade to \u003ca href=\"https://github.com/pydantic/pydantic/releases/tag/v2.14.2\"\u003eV2.14.2\u003c/a\u003e or later.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eDenial of service through validation of untrusted input. Affected are applications validating untrusted strings into \u003ccode\u003etimedelta\u003c/code\u003e fields.\u003c/p\u003e"
}
],
"value": "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.\n\nThe 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.\n\nThe issue was fixed in commit 62791e66a9f8f118e465ed760c9e2ede9ae3055e. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into timedelta fields."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"vectorString": "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",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333: Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:56.729Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-jfv7-ghgv-gx4x"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/datetime_parse.py#L45"
},
{
"url": "https://github.com/pydantic/pydantic/commit/62791e66a9f8f118e465ed760c9e2ede9ae3055e"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-jfv7-ghgv-gx4x",
"discovery": "UNKNOWN"
},
"title": "Quadratic time timedelta validation in Pydantic V1"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133421",
"datePublished": "2026-11-20T07:33:56.729Z",
"dateReserved": "2026-11-19T19:25:01.883Z",
"dateUpdated": "2026-11-20T17:21:34.429Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…