Search
Find a vulnerability
Search criteria
23 vulnerabilities found for Pydantic by Pydantic
CVE-2026-133429 (GCVE-0-2026-133429)
Vulnerability from nvd – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:18
VLAI
EPSS
VEX
Title
Validation bypass of extra data keys in JSON model validation
Summary
When validating JSON data into a model allowing extra data, the keys of extra data aren't validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r'^x_')], int].
The validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.
The issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.
Impact: validation bypass, as extra data returned by validation doesn't match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra='allow'), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.
Python mode validation isn't affected.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:18 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133429",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:18:36.430640Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:18:45.072Z",
"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": [
{
"lessThan": "2.14.2",
"status": "affected",
"version": "2.13.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "lullu57"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eWhen validating JSON data into a model allowing extra data, the keys of extra data aren\u0027t validated against the key type annotated on \u003ccode\u003e__pydantic_extra__\u003c/code\u003e, resulting in extra data not matching the declared type. This is the case if you define \u003ccode\u003e__pydantic_extra__\u003c/code\u003e as e.g. \u003ccode\u003edict[Annotated[str, Field(pattern=r\u0027^x_\u0027)], int]\u003c/code\u003e.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540\"\u003e\u003ccode\u003evalidate_json_by_iteration()\u003c/code\u003e\u003c/a\u003e method (in \u003ccode\u003epydantic-core/src/validators/model_fields.rs\u003c/code\u003e), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is (\u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623\"\u003eL605-L623\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003eExtraBehavior::Allow =\u0026gt; {\n // the key is stored as is, without being validated:\n let py_key: Bound\u0026lt;\u0027_, PyString\u0026gt; = new_py_string(py, key, state.cache_str());\n if let Some(validator) = \u0026amp;self.extras_validator {\n match validator.validate(py, value, state) {\n Ok(value) =\u0026gt; {\n model_extra_dict.set_item(\u0026amp;py_key, value)?;\n fields_set.add(py_key)?;\n }\n // ...\n }\n }\n // ...\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003ePython mode validation isn\u0027t affected.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358\"\u003e4c65dbda9970a488e2ff21c8693fc6f6d70a3358\u003c/a\u003e.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eValidation bypass: extra data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with \u003ccode\u003eextra=\u0027allow\u0027\u003c/code\u003e), with a key type annotated on \u003ccode\u003e__pydantic_extra__\u003c/code\u003e (e.g. \u003ccode\u003edict[Annotated[str, Field(pattern=...)], int]\u003c/code\u003e), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.\u003c/p\u003e\n\u003cp\u003ePython mode validation isn\u0027t affected.\u003c/p\u003e"
}
],
"value": "When validating JSON data into a model allowing extra data, the keys of extra data aren\u0027t validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r\u0027^x_\u0027)], int].\n\nThe validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.\n\nThe issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.\n\nImpact: validation bypass, as extra data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra=\u0027allow\u0027), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.\n\nPython mode validation isn\u0027t affected."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:01.421Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623"
},
{
"url": "https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358"
}
],
"source": {
"advisory": "GHSA-qpmf-fgh3-ff25",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of extra data keys in JSON model validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133429",
"datePublished": "2026-11-20T07:32:01.421Z",
"dateReserved": "2026-11-19T19:50:17.136Z",
"dateUpdated": "2026-11-20T17:18:45.072Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133428 (GCVE-0-2026-133428)
Vulnerability from nvd – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:19
VLAI
EPSS
VEX
Title
Quadratic time and memory multi-host URL validation
Summary
Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.
The parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don't prevent the issue.
The issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl).
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:19 UTC
CWE
- CWE-407 - Inefficient Algorithmic Complexity
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133428",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:19:11.695942Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:19:22.719Z",
"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": [
{
"lessThan": "2.14.0",
"status": "affected",
"version": "2.0.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 URL with a long scheme and many hosts into a multi-host URL field (e.g. \u003ccode\u003ePostgresDsn\u003c/code\u003e) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L537\"\u003e\u003ccode\u003eparse_multihost_url()\u003c/code\u003e\u003c/a\u003e function (in \u003ccode\u003epydantic-core/src/validators/url.rs\u003c/code\u003e) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them (\u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L644-L649\"\u003eL644-L649\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003elet extra_urls: Vec\u0026lt;Url\u0026gt; = hosts\n .iter()\n .map(|host| {\n let reconstructed_url = format!(\"{prefix}{host}\");\n parse_url(\u0026amp;reconstructed_url, input, strict)\n })\n .collect::\u0026lt;ValResult\u0026lt;_\u0026gt;\u0026gt;()?;\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eAs the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. \u003ccode\u003epostgres\u003c/code\u003e for \u003ccode\u003ePostgresDsn\u003c/code\u003e) are only checked after parsing, so they don\u0027t prevent the issue.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/b4028f9d87e34750e53be0ba011d70f3c0fcc94e\"\u003eb4028f9d87e34750e53be0ba011d70f3c0fcc94e\u003c/a\u003e.\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 multi-host URL fields (\u003ccode\u003ePostgresDsn\u003c/code\u003e, \u003ccode\u003eMongoDsn\u003c/code\u003e, \u003ccode\u003eNatsDsn\u003c/code\u003e, or custom types built on \u003ccode\u003eMultiHostUrl\u003c/code\u003e).\u003c/p\u003e"
}
],
"value": "Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.\n\nThe parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don\u0027t prevent the issue.\n\nThe issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl)."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:16.979Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-955g-x97g-8mcp"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L537"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L644-L649"
},
{
"url": "https://github.com/pydantic/pydantic/commit/b4028f9d87e34750e53be0ba011d70f3c0fcc94e"
}
],
"source": {
"advisory": "GHSA-955g-x97g-8mcp",
"discovery": "UNKNOWN"
},
"title": "Quadratic time and memory multi-host URL validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133428",
"datePublished": "2026-11-20T07:32:16.979Z",
"dateReserved": "2026-11-19T19:47:33.202Z",
"dateUpdated": "2026-11-20T17:19:22.719Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133426 (GCVE-0-2026-133426)
Vulnerability from nvd – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:19
VLAI
EPSS
VEX
Title
Unbounded exponent in Fraction validation
Summary
Validating an untrusted string in exponent notation into a Fraction field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.
String inputs are passed to the Fraction constructor. For strings in exponent notation (e.g. '1e8000000'), CPython computes the corresponding power of ten as an integer (in Lib/fractions.py).
The issue was fixed in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5. For strings in exponent notation, the exponent is now parsed before calling the Fraction constructor, and exponents larger than 4300 (in absolute value) are rejected.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into Fraction fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.
From 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:19 UTC
CWE
- CWE-400 - Uncontrolled Resource Consumption
References
3 references
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133426",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:19:41.947644Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:19:51.410Z",
"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": [
{
"lessThan": "2.14.0",
"status": "affected",
"version": "2.10.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 string in exponent notation into a \u003ccode\u003eFraction\u003c/code\u003e field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eString inputs are passed to the \u003ccode\u003eFraction\u003c/code\u003e constructor. For strings in exponent notation (e.g. \u003ccode\u003e\u00271e8000000\u0027\u003c/code\u003e), CPython computes the corresponding power of ten as an integer (\u003ca href=\"https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281\"\u003e\u003ccode\u003eLib/fractions.py\u003c/code\u003e\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003eexp = m.group(\u0027exp\u0027)\nif exp:\n exp = int(exp)\n if exp \u0026gt;= 0:\n numerator *= 10**exp\n else:\n denominator *= 10**-exp\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5\"\u003e69ed168e9ad465eef4c8d81efb152a93b604daf5\u003c/a\u003e. For strings in exponent notation, the exponent is now parsed before calling the \u003ccode\u003eFraction\u003c/code\u003e constructor, and exponents larger than 4300 (in absolute value) are rejected.\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\u003eFraction\u003c/code\u003e fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.\u003c/p\u003e\n\u003cp\u003eFrom 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers.\u003c/p\u003e"
}
],
"value": "Validating an untrusted string in exponent notation into a Fraction field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.\n\nString inputs are passed to the Fraction constructor. For strings in exponent notation (e.g. \u00271e8000000\u0027), CPython computes the corresponding power of ten as an integer (in Lib/fractions.py).\n\nThe issue was fixed in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5. For strings in exponent notation, the exponent is now parsed before calling the Fraction constructor, and exponents larger than 4300 (in absolute value) are rejected.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into Fraction fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.\n\nFrom 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-400",
"description": "CWE-400: Uncontrolled Resource Consumption",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:42.640Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-gj4f-r7mf-jjxh"
},
{
"url": "https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281"
},
{
"url": "https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5"
}
],
"source": {
"advisory": "GHSA-gj4f-r7mf-jjxh",
"discovery": "UNKNOWN"
},
"title": "Unbounded exponent in Fraction validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133426",
"datePublished": "2026-11-20T07:32:42.640Z",
"dateReserved": "2026-11-19T19:43:32.190Z",
"dateUpdated": "2026-11-20T17:19:51.410Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133424 (GCVE-0-2026-133424)
Vulnerability from nvd – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:20
VLAI
EPSS
VEX
Title
Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data
Summary
When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.
Extra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.
The issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.
Impact: validation bypass, as data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra='allow', or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).
Pydantic models (BaseModel) are not affected, as extra data is stored separately from fields.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:20 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133424",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:20:13.958637Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:20:23.640Z",
"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": [
{
"lessThan": "2.14.2",
"status": "affected",
"version": "2.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "schecthellraiser606"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eWhen extra data is allowed, providing both the alias and the name of an aliased \u003ccode\u003eTypedDict\u003c/code\u003e or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eExtra items are stored in the same dictionary as the fields (the returned dictionary for \u003ccode\u003eTypedDict\u003c/code\u003e, the instance \u003ccode\u003e__dict__\u003c/code\u003e for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one (\u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225\"\u003e\u003ccode\u003epydantic-core/src/validators/typed_dict.rs\u003c/code\u003e\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003e// First pass, for each field:\nused_keys.insert(lookup_path.first_key()); // only the alias `b` is marked as used\n// ...\noutput_dict.set_item(\u0026amp;field.name, value)?; // the validated value is stored under `a`\n\n// Second pass, for each input key:\nif self.used_keys.contains(cow.as_ref()) {\n continue; // `a` isn\u0027t marked as used\n}\n// ...\nExtraBehavior::Allow =\u0026gt; {\n // the extra value is stored under `a`, overwriting the validated value:\n self.output_dict.set_item(py_key, value.to_object(self.py)?)?;\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eDataclasses have the same logic, in \u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342\"\u003e\u003ccode\u003epydantic-core/src/validators/dataclass.rs\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778\"\u003e34491f5328f168f14e3769cd5f0f83c0af0f4778\u003c/a\u003e.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eValidation bypass: data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into \u003ccode\u003eTypedDict\u003c/code\u003e or dataclass types with aliased fields and extra data allowed (with \u003ccode\u003eextra=\u0027allow\u0027\u003c/code\u003e, or with the \u003ccode\u003eextra_items\u003c/code\u003e argument for \u003ccode\u003eTypedDict\u003c/code\u003e), using Pydantic V2 (up to and including 2.14.1).\u003c/p\u003e\n\u003cp\u003ePydantic models (\u003ccode\u003eBaseModel\u003c/code\u003e) are not affected, as extra data is stored separately from fields.\u003c/p\u003e"
}
],
"value": "When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.\n\nExtra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.\n\nThe issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.\n\nImpact: validation bypass, as data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra=\u0027allow\u0027, or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).\n\nPydantic models (BaseModel) are not affected, as extra data is stored separately from fields."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:18.111Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29"
},
{
"url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225"
},
{
"url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342"
},
{
"url": "https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778"
}
],
"source": {
"advisory": "GHSA-3r8g-cqwr-jr29",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133424",
"datePublished": "2026-11-20T07:33:18.111Z",
"dateReserved": "2026-11-19T19:39:18.090Z",
"dateUpdated": "2026-11-20T17:20:23.640Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133422 (GCVE-0-2026-133422)
Vulnerability from nvd – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:21
VLAI
EPSS
VEX
Title
Quadratic time unique_items list validation in Pydantic V1
Summary
Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.
The ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.
The issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. 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 lists into fields constrained with unique_items=True (using conlist() or Field()).
The fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.
Pydantic V2 models are not affected.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:20 UTC
CWE
- CWE-407 - Inefficient Algorithmic Complexity
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133422",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:20:53.119210Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:21:01.909Z",
"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": "1.9.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 list into a field constrained with \u003ccode\u003eunique_items=True\u003c/code\u003e with Pydantic V1 takes quadratic time: an input of a few hundred 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/types.py#L612-L620\"\u003e\u003ccode\u003eConstrainedList.unique_items_validator\u003c/code\u003e\u003c/a\u003e validator (in \u003ccode\u003epydantic/types.py\u003c/code\u003e) checks each item against all the following ones:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003e@classmethod\ndef unique_items_validator(cls, v: \u0027Optional[List[T]]\u0027) -\u0026gt; \u0027Optional[List[T]]\u0027:\n if v is None:\n return None\n\n for i, value in enumerate(v, start=1):\n if value in v[i:]:\n raise errors.ListUniqueItemsError()\n\n return v\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eFor a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87\"\u003e6ec75e57f277a820ec583e601167f25fe8dc7c87\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 lists into fields constrained with \u003ccode\u003eunique_items=True\u003c/code\u003e (using \u003ccode\u003econlist()\u003c/code\u003e or \u003ccode\u003eField()\u003c/code\u003e).\u003c/p\u003e\n\u003cp\u003eThe fix only applies to lists of builtin scalar types (\u003ccode\u003eint\u003c/code\u003e, \u003ccode\u003efloat\u003c/code\u003e, \u003ccode\u003estr\u003c/code\u003e, \u003ccode\u003ebytes\u003c/code\u003e, \u003ccode\u003ebool\u003c/code\u003e and \u003ccode\u003eNone\u003c/code\u003e), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren\u0027t guaranteed to be hashable: bound their size using the \u003ccode\u003emax_items\u003c/code\u003e constraint.\u003c/p\u003e\n\u003cp\u003ePydantic V2 models are not affected.\u003c/p\u003e"
}
],
"value": "Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.\n\nThe ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\n\nThe issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. 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 lists into fields constrained with unique_items=True (using conlist() or Field()).\n\nThe fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren\u0027t guaranteed to be hashable: bound their size using the max_items constraint.\n\nPydantic V2 models are not affected."
}
],
"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-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:35.498Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620"
},
{
"url": "https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-49g6-96jj-f7r9",
"discovery": "UNKNOWN"
},
"title": "Quadratic time unique_items list validation in Pydantic V1"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133422",
"datePublished": "2026-11-20T07:33:35.498Z",
"dateReserved": "2026-11-19T19:33:36.828Z",
"dateUpdated": "2026-11-20T17:21:01.909Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133421 (GCVE-0-2026-133421)
Vulnerability from nvd – 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"
}
CVE-2026-133276 (GCVE-0-2026-133276)
Vulnerability from nvd – Published: 2026-11-19 16:15 – Updated: 2026-11-19 20:35
VLAI
EPSS
VEX
Title
Validation bypass of Pydantic V1 dataclasses allowing extra data
Summary
When extra data is allowed (extra=Extra.allow), providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation, so a __pydantic_initialised__ keyword argument overrides the internal flag used to skip validation of already validated instances. As a result, data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data. The issue was fixed in Pydantic 1.10.27. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:35 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133276",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:35:18.698700Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:35:26.495Z",
"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": [
{
"lessThan": "1.10.27",
"status": "affected",
"version": "1.10.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "lullu57"
}
],
"descriptions": [
{
"lang": "en",
"value": "When extra data is allowed (extra=Extra.allow), providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation, so a __pydantic_initialised__ keyword argument overrides the internal flag used to skip validation of already validated instances. As a result, data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data. The issue was fixed in Pydantic 1.10.27. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T16:22:07.903Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L295-L298"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L430-L434"
},
{
"url": "https://github.com/pydantic/pydantic/commit/b26913fe6"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-r49w-vh47-r4hf",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of Pydantic V1 dataclasses allowing extra data"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133276",
"datePublished": "2026-11-19T16:15:01.429Z",
"dateReserved": "2026-11-19T16:11:10.703Z",
"dateUpdated": "2026-11-19T20:35:26.495Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-58203 (GCVE-0-2026-58203)
Vulnerability from nvd – Published: 2026-07-06 14:24 – Updated: 2026-07-06 16:19
VLAI
EPSS
VEX
Title
NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size
Summary
pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2.
Severity
5.3 (Medium)
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-06 16:19 UTC
CWE
Assigner
References
1 reference
| URL | Tags |
|---|---|
| https://github.com/pydantic/pydantic-settings/sec… | x_refsource_CONFIRM |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| pydantic | pydantic-settings |
Affected:
>= 2.12.0, < 2.14.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-58203",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-06T16:19:35.619669Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-06T16:19:59.090Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "pydantic-settings",
"vendor": "pydantic",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.12.0, \u003c 2.14.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-59",
"description": "CWE-59: Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-400",
"description": "CWE-400: Uncontrolled Resource Consumption",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-07-06T14:24:15.740Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
}
],
"source": {
"advisory": "GHSA-4xgf-cpjx-pc3j",
"discovery": "UNKNOWN"
},
"title": "NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-58203",
"datePublished": "2026-07-06T14:24:15.740Z",
"dateReserved": "2026-06-29T17:09:25.872Z",
"dateUpdated": "2026-07-06T16:19:59.090Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2024-3772 (GCVE-0-2024-3772)
Vulnerability from nvd – Published: 2024-04-15 01:42 – Updated: 2025-02-13 17:53
VLAI
EPSS
VEX
Title
Regular expression denial of service in Pydantic < 2.4.0
Summary
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
Severity
5.9 (Medium)
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-04-22 19:52 UTC
CWE
- CWE-1333 - Inefficient Regular Expression Complexity
Assigner
References
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| Pydantic | Pydantic |
Affected:
2.0 , < 2.4.0
(semver)
Affected: 1.0 , < 1.10.13 (semver) |
|
| pydantic_project | pydantic |
Affected:
1.0 , < 1.10.13
(semver)
cpe:2.3:a:pydantic_project:pydantic:1.0:-:*:*:*:*:*:* |
|
| pydantic_project | pydantic |
Affected:
2.0
cpe:2.3:a:pydantic_project:pydantic:2.0:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:1.0:-:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
},
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:2.0:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"status": "affected",
"version": "2.0"
}
]
}
],
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-3772",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-04-22T19:52:22.735887Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-07-24T15:29:03.754Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-01T20:20:01.828Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"tags": [
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "Pydantic",
"versions": [
{
"lessThan": "2.4.0",
"status": "affected",
"version": "2.0",
"versionType": "semver"
},
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Sajeeb Lohani"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "Regular expression denial of service in Pydanic \u0026lt; 2.4.0, \u0026lt; 1.10.13 allows remote attackers to cause denial of service via a crafted email string.\u003cbr\u003e"
}
],
"value": "Regular expression denial of service in Pydanic \u003c 2.4.0, \u003c 1.10.13 allows remote attackers to cause denial of service via a crafted email string."
}
],
"impacts": [
{
"descriptions": [
{
"lang": "en",
"value": "Denial of Service"
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333 Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-04-26T02:05:56.157Z",
"orgId": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"shortName": "directcyber"
},
"references": [
{
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
}
],
"source": {
"discovery": "UNKNOWN"
},
"title": "Regular expression denial of service in Pydantic \u003c 2.4.0",
"x_generator": {
"engine": "Vulnogram 0.1.0-dev"
}
}
},
"cveMetadata": {
"assignerOrgId": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"assignerShortName": "directcyber",
"cveId": "CVE-2024-3772",
"datePublished": "2024-04-15T01:42:07.888Z",
"dateReserved": "2024-04-15T01:23:15.783Z",
"dateUpdated": "2025-02-13T17:53:00.106Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2021-29510 (GCVE-0-2021-29510)
Vulnerability from nvd – Published: 2021-05-13 18:55 – Updated: 2024-08-03 22:11
VLAI
EPSS
VEX
Title
Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic
Summary
Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `'infinity'`, `'inf'` or `float('inf')` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can't upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you'll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic.
Severity
CWE
- CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/samuelcolvin/pydantic/security… | x_refsource_CONFIRM |
| https://github.com/samuelcolvin/pydantic/commit/7… | x_refsource_MISC |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| samuelcolvin | pydantic |
Affected:
>= 1.8.0, < 1.8.2
Affected: >= 1.7.0, < 1.7.4 Affected: < 1.6.2 |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T22:11:05.442Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "pydantic",
"vendor": "samuelcolvin",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.8.0, \u003c 1.8.2"
},
{
"status": "affected",
"version": "\u003e= 1.7.0, \u003c 1.7.4"
},
{
"status": "affected",
"version": "\u003c 1.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `\u0027infinity\u0027`, `\u0027inf\u0027` or `float(\u0027inf\u0027)` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can\u0027t upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you\u0027ll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 3.3,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-835",
"description": "CWE-835: Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2021-05-23T02:06:14.000Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
],
"source": {
"advisory": "GHSA-5jqp-qgf6-3pvh",
"discovery": "UNKNOWN"
},
"title": "Use of \"infinity\" as an input to datetime and date fields causes infinite loop in pydantic",
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2021-29510",
"STATE": "PUBLIC",
"TITLE": "Use of \"infinity\" as an input to datetime and date fields causes infinite loop in pydantic"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "pydantic",
"version": {
"version_data": [
{
"version_value": "\u003e= 1.8.0, \u003c 1.8.2"
},
{
"version_value": "\u003e= 1.7.0, \u003c 1.7.4"
},
{
"version_value": "\u003c 1.6.2"
}
]
}
}
]
},
"vendor_name": "samuelcolvin"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `\u0027infinity\u0027`, `\u0027inf\u0027` or `float(\u0027inf\u0027)` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can\u0027t upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you\u0027ll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 3.3,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-835: Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh",
"refsource": "CONFIRM",
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"name": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468",
"refsource": "MISC",
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
]
},
"source": {
"advisory": "GHSA-5jqp-qgf6-3pvh",
"discovery": "UNKNOWN"
}
}
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2021-29510",
"datePublished": "2021-05-13T18:55:11.000Z",
"dateReserved": "2021-03-30T00:00:00.000Z",
"dateUpdated": "2024-08-03T22:11:05.442Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
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"
}
CVE-2026-133422 (GCVE-0-2026-133422)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:21
VLAI
EPSS
VEX
Title
Quadratic time unique_items list validation in Pydantic V1
Summary
Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.
The ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.
The issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. 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 lists into fields constrained with unique_items=True (using conlist() or Field()).
The fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren't guaranteed to be hashable: bound their size using the max_items constraint.
Pydantic V2 models are not affected.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:20 UTC
CWE
- CWE-407 - Inefficient Algorithmic Complexity
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133422",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:20:53.119210Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:21:01.909Z",
"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": "1.9.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 list into a field constrained with \u003ccode\u003eunique_items=True\u003c/code\u003e with Pydantic V1 takes quadratic time: an input of a few hundred 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/types.py#L612-L620\"\u003e\u003ccode\u003eConstrainedList.unique_items_validator\u003c/code\u003e\u003c/a\u003e validator (in \u003ccode\u003epydantic/types.py\u003c/code\u003e) checks each item against all the following ones:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003e@classmethod\ndef unique_items_validator(cls, v: \u0027Optional[List[T]]\u0027) -\u0026gt; \u0027Optional[List[T]]\u0027:\n if v is None:\n return None\n\n for i, value in enumerate(v, start=1):\n if value in v[i:]:\n raise errors.ListUniqueItemsError()\n\n return v\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eFor a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87\"\u003e6ec75e57f277a820ec583e601167f25fe8dc7c87\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 lists into fields constrained with \u003ccode\u003eunique_items=True\u003c/code\u003e (using \u003ccode\u003econlist()\u003c/code\u003e or \u003ccode\u003eField()\u003c/code\u003e).\u003c/p\u003e\n\u003cp\u003eThe fix only applies to lists of builtin scalar types (\u003ccode\u003eint\u003c/code\u003e, \u003ccode\u003efloat\u003c/code\u003e, \u003ccode\u003estr\u003c/code\u003e, \u003ccode\u003ebytes\u003c/code\u003e, \u003ccode\u003ebool\u003c/code\u003e and \u003ccode\u003eNone\u003c/code\u003e), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren\u0027t guaranteed to be hashable: bound their size using the \u003ccode\u003emax_items\u003c/code\u003e constraint.\u003c/p\u003e\n\u003cp\u003ePydantic V2 models are not affected.\u003c/p\u003e"
}
],
"value": "Validating an untrusted list into a field constrained with unique_items=True with Pydantic V1 takes quadratic time: an input of a few hundred kilobytes takes seconds to validate.\n\nThe ConstrainedList.unique_items_validator validator (in pydantic/types.py) checks each item against all the following ones. For a list with no duplicates (the common, valid case), this results in a quadratic number of comparisons.\n\nThe issue was fixed in commit 6ec75e57f277a820ec583e601167f25fe8dc7c87. 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 lists into fields constrained with unique_items=True (using conlist() or Field()).\n\nThe fix only applies to lists of builtin scalar types (int, float, str, bytes, bool and None), for which duplicates can be detected in linear time. Lists of other types (e.g. models or dictionaries) are still checked in quadratic time, as their items aren\u0027t guaranteed to be hashable: bound their size using the max_items constraint.\n\nPydantic V2 models are not affected."
}
],
"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-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:35.498Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-49g6-96jj-f7r9"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/types.py#L612-L620"
},
{
"url": "https://github.com/pydantic/pydantic/commit/6ec75e57f277a820ec583e601167f25fe8dc7c87"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-49g6-96jj-f7r9",
"discovery": "UNKNOWN"
},
"title": "Quadratic time unique_items list validation in Pydantic V1"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133422",
"datePublished": "2026-11-20T07:33:35.498Z",
"dateReserved": "2026-11-19T19:33:36.828Z",
"dateUpdated": "2026-11-20T17:21:01.909Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133424 (GCVE-0-2026-133424)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:33 – Updated: 2026-11-20 17:20
VLAI
EPSS
VEX
Title
Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data
Summary
When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.
Extra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.
The issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.
Impact: validation bypass, as data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra='allow', or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).
Pydantic models (BaseModel) are not affected, as extra data is stored separately from fields.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:20 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133424",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:20:13.958637Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:20:23.640Z",
"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": [
{
"lessThan": "2.14.2",
"status": "affected",
"version": "2.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "schecthellraiser606"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eWhen extra data is allowed, providing both the alias and the name of an aliased \u003ccode\u003eTypedDict\u003c/code\u003e or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eExtra items are stored in the same dictionary as the fields (the returned dictionary for \u003ccode\u003eTypedDict\u003c/code\u003e, the instance \u003ccode\u003e__dict__\u003c/code\u003e for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one (\u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225\"\u003e\u003ccode\u003epydantic-core/src/validators/typed_dict.rs\u003c/code\u003e\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003e// First pass, for each field:\nused_keys.insert(lookup_path.first_key()); // only the alias `b` is marked as used\n// ...\noutput_dict.set_item(\u0026amp;field.name, value)?; // the validated value is stored under `a`\n\n// Second pass, for each input key:\nif self.used_keys.contains(cow.as_ref()) {\n continue; // `a` isn\u0027t marked as used\n}\n// ...\nExtraBehavior::Allow =\u0026gt; {\n // the extra value is stored under `a`, overwriting the validated value:\n self.output_dict.set_item(py_key, value.to_object(self.py)?)?;\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eDataclasses have the same logic, in \u003ca href=\"https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342\"\u003e\u003ccode\u003epydantic-core/src/validators/dataclass.rs\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778\"\u003e34491f5328f168f14e3769cd5f0f83c0af0f4778\u003c/a\u003e.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eValidation bypass: data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into \u003ccode\u003eTypedDict\u003c/code\u003e or dataclass types with aliased fields and extra data allowed (with \u003ccode\u003eextra=\u0027allow\u0027\u003c/code\u003e, or with the \u003ccode\u003eextra_items\u003c/code\u003e argument for \u003ccode\u003eTypedDict\u003c/code\u003e), using Pydantic V2 (up to and including 2.14.1).\u003c/p\u003e\n\u003cp\u003ePydantic models (\u003ccode\u003eBaseModel\u003c/code\u003e) are not affected, as extra data is stored separately from fields.\u003c/p\u003e"
}
],
"value": "When extra data is allowed, providing both the alias and the name of an aliased TypedDict or dataclass field makes the unvalidated value (provided under the name) overwrite the validated one (provided under the alias), resulting in validated data not matching the declared type.\n\nExtra items are stored in the same dictionary as the fields (the returned dictionary for TypedDict, the instance __dict__ for dataclasses). As only the alias is marked as used, the field name is treated as an extra item, and its unvalidated value overrides the validated one. The TypedDict validator (pydantic-core/src/validators/typed_dict.rs) and the dataclass validator (pydantic-core/src/validators/dataclass.rs) share this logic.\n\nThe issue was fixed in commit 34491f5328f168f14e3769cd5f0f83c0af0f4778.\n\nImpact: validation bypass, as data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into TypedDict or dataclass types with aliased fields and extra data allowed (with extra=\u0027allow\u0027, or with the extra_items argument for TypedDict), using Pydantic V2 (up to and including 2.14.1).\n\nPydantic models (BaseModel) are not affected, as extra data is stored separately from fields."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:33:18.111Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-3r8g-cqwr-jr29"
},
{
"url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/typed_dict.rs#L204-L225"
},
{
"url": "https://github.com/pydantic/pydantic/blob/becee9cc0ef8132e854762448fde76aa56608c6b/pydantic-core/src/validators/dataclass.rs#L215-L342"
},
{
"url": "https://github.com/pydantic/pydantic/commit/34491f5328f168f14e3769cd5f0f83c0af0f4778"
}
],
"source": {
"advisory": "GHSA-3r8g-cqwr-jr29",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of aliased fields in TypedDict and dataclasses allowing extra data"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133424",
"datePublished": "2026-11-20T07:33:18.111Z",
"dateReserved": "2026-11-19T19:39:18.090Z",
"dateUpdated": "2026-11-20T17:20:23.640Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133426 (GCVE-0-2026-133426)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:19
VLAI
EPSS
VEX
Title
Unbounded exponent in Fraction validation
Summary
Validating an untrusted string in exponent notation into a Fraction field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.
String inputs are passed to the Fraction constructor. For strings in exponent notation (e.g. '1e8000000'), CPython computes the corresponding power of ten as an integer (in Lib/fractions.py).
The issue was fixed in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5. For strings in exponent notation, the exponent is now parsed before calling the Fraction constructor, and exponents larger than 4300 (in absolute value) are rejected.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into Fraction fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.
From 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:19 UTC
CWE
- CWE-400 - Uncontrolled Resource Consumption
References
3 references
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133426",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:19:41.947644Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:19:51.410Z",
"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": [
{
"lessThan": "2.14.0",
"status": "affected",
"version": "2.10.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 string in exponent notation into a \u003ccode\u003eFraction\u003c/code\u003e field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eString inputs are passed to the \u003ccode\u003eFraction\u003c/code\u003e constructor. For strings in exponent notation (e.g. \u003ccode\u003e\u00271e8000000\u0027\u003c/code\u003e), CPython computes the corresponding power of ten as an integer (\u003ca href=\"https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281\"\u003e\u003ccode\u003eLib/fractions.py\u003c/code\u003e\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-python\"\u003eexp = m.group(\u0027exp\u0027)\nif exp:\n exp = int(exp)\n if exp \u0026gt;= 0:\n numerator *= 10**exp\n else:\n denominator *= 10**-exp\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5\"\u003e69ed168e9ad465eef4c8d81efb152a93b604daf5\u003c/a\u003e. For strings in exponent notation, the exponent is now parsed before calling the \u003ccode\u003eFraction\u003c/code\u003e constructor, and exponents larger than 4300 (in absolute value) are rejected.\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\u003eFraction\u003c/code\u003e fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.\u003c/p\u003e\n\u003cp\u003eFrom 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers.\u003c/p\u003e"
}
],
"value": "Validating an untrusted string in exponent notation into a Fraction field computes the full power of ten without any bound: an input of a few bytes takes seconds to validate.\n\nString inputs are passed to the Fraction constructor. For strings in exponent notation (e.g. \u00271e8000000\u0027), CPython computes the corresponding power of ten as an integer (in Lib/fractions.py).\n\nThe issue was fixed in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5. For strings in exponent notation, the exponent is now parsed before calling the Fraction constructor, and exponents larger than 4300 (in absolute value) are rejected.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into Fraction fields (in both JSON and Python mode, including in strict mode), using Pydantic from 2.10.0 up to (but excluding) 2.14.0.\n\nFrom 2.14.0, exponents larger than 4300 (in absolute value) are rejected, matching the maximum number of digits accepted for integers."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-400",
"description": "CWE-400: Uncontrolled Resource Consumption",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:42.640Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-gj4f-r7mf-jjxh"
},
{
"url": "https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281"
},
{
"url": "https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5"
}
],
"source": {
"advisory": "GHSA-gj4f-r7mf-jjxh",
"discovery": "UNKNOWN"
},
"title": "Unbounded exponent in Fraction validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133426",
"datePublished": "2026-11-20T07:32:42.640Z",
"dateReserved": "2026-11-19T19:43:32.190Z",
"dateUpdated": "2026-11-20T17:19:51.410Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133428 (GCVE-0-2026-133428)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:19
VLAI
EPSS
VEX
Title
Quadratic time and memory multi-host URL validation
Summary
Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.
The parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don't prevent the issue.
The issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e.
Impact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl).
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:19 UTC
CWE
- CWE-407 - Inefficient Algorithmic Complexity
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133428",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:19:11.695942Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:19:22.719Z",
"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": [
{
"lessThan": "2.14.0",
"status": "affected",
"version": "2.0.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"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 URL with a long scheme and many hosts into a multi-host URL field (e.g. \u003ccode\u003ePostgresDsn\u003c/code\u003e) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L537\"\u003e\u003ccode\u003eparse_multihost_url()\u003c/code\u003e\u003c/a\u003e function (in \u003ccode\u003epydantic-core/src/validators/url.rs\u003c/code\u003e) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them (\u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L644-L649\"\u003eL644-L649\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003elet extra_urls: Vec\u0026lt;Url\u0026gt; = hosts\n .iter()\n .map(|host| {\n let reconstructed_url = format!(\"{prefix}{host}\");\n parse_url(\u0026amp;reconstructed_url, input, strict)\n })\n .collect::\u0026lt;ValResult\u0026lt;_\u0026gt;\u0026gt;()?;\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eAs the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. \u003ccode\u003epostgres\u003c/code\u003e for \u003ccode\u003ePostgresDsn\u003c/code\u003e) are only checked after parsing, so they don\u0027t prevent the issue.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/b4028f9d87e34750e53be0ba011d70f3c0fcc94e\"\u003eb4028f9d87e34750e53be0ba011d70f3c0fcc94e\u003c/a\u003e.\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 multi-host URL fields (\u003ccode\u003ePostgresDsn\u003c/code\u003e, \u003ccode\u003eMongoDsn\u003c/code\u003e, \u003ccode\u003eNatsDsn\u003c/code\u003e, or custom types built on \u003ccode\u003eMultiHostUrl\u003c/code\u003e).\u003c/p\u003e"
}
],
"value": "Validating an untrusted URL with a long scheme and many hosts into a multi-host URL field (e.g. PostgresDsn) takes quadratic time and memory: an input of about a hundred kilobytes takes around a gigabyte of memory to validate.\n\nThe parse_multihost_url() function (in pydantic-core/src/validators/url.rs) parses each host separately, prepending the whole URL prefix (including the scheme) to every one of them. As the scheme can be arbitrarily long, and is parsed and stored once per host, both time and memory grow quadratically with the input size. Allowed schemes (e.g. postgres for PostgresDsn) are only checked after parsing, so they don\u0027t prevent the issue.\n\nThe issue was fixed in commit b4028f9d87e34750e53be0ba011d70f3c0fcc94e.\n\nImpact: denial of service through validation of untrusted input. Affected are applications validating untrusted strings into multi-host URL fields (PostgresDsn, MongoDsn, NatsDsn, or custom types built on MultiHostUrl)."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-407",
"description": "CWE-407: Inefficient Algorithmic Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:16.979Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-955g-x97g-8mcp"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L537"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/url.rs#L644-L649"
},
{
"url": "https://github.com/pydantic/pydantic/commit/b4028f9d87e34750e53be0ba011d70f3c0fcc94e"
}
],
"source": {
"advisory": "GHSA-955g-x97g-8mcp",
"discovery": "UNKNOWN"
},
"title": "Quadratic time and memory multi-host URL validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133428",
"datePublished": "2026-11-20T07:32:16.979Z",
"dateReserved": "2026-11-19T19:47:33.202Z",
"dateUpdated": "2026-11-20T17:19:22.719Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133429 (GCVE-0-2026-133429)
Vulnerability from cvelistv5 – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:18
VLAI
EPSS
VEX
Title
Validation bypass of extra data keys in JSON model validation
Summary
When validating JSON data into a model allowing extra data, the keys of extra data aren't validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r'^x_')], int].
The validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.
The issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.
Impact: validation bypass, as extra data returned by validation doesn't match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra='allow'), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.
Python mode validation isn't affected.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-20 17:18 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133429",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-20T17:18:36.430640Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T17:18:45.072Z",
"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": [
{
"lessThan": "2.14.2",
"status": "affected",
"version": "2.13.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "lullu57"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003ch3\u003eSummary\u003c/h3\u003e\n\u003cp\u003eWhen validating JSON data into a model allowing extra data, the keys of extra data aren\u0027t validated against the key type annotated on \u003ccode\u003e__pydantic_extra__\u003c/code\u003e, resulting in extra data not matching the declared type. This is the case if you define \u003ccode\u003e__pydantic_extra__\u003c/code\u003e as e.g. \u003ccode\u003edict[Annotated[str, Field(pattern=r\u0027^x_\u0027)], int]\u003c/code\u003e.\u003c/p\u003e\n\u003ch3\u003eDetails\u003c/h3\u003e\n\u003cp\u003eThe \u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540\"\u003e\u003ccode\u003evalidate_json_by_iteration()\u003c/code\u003e\u003c/a\u003e method (in \u003ccode\u003epydantic-core/src/validators/model_fields.rs\u003c/code\u003e), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is (\u003ca href=\"https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623\"\u003eL605-L623\u003c/a\u003e):\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-rust\"\u003eExtraBehavior::Allow =\u0026gt; {\n // the key is stored as is, without being validated:\n let py_key: Bound\u0026lt;\u0027_, PyString\u0026gt; = new_py_string(py, key, state.cache_str());\n if let Some(validator) = \u0026amp;self.extras_validator {\n match validator.validate(py, value, state) {\n Ok(value) =\u0026gt; {\n model_extra_dict.set_item(\u0026amp;py_key, value)?;\n fields_set.add(py_key)?;\n }\n // ...\n }\n }\n // ...\n}\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003ePython mode validation isn\u0027t affected.\u003c/p\u003e\n\u003cp\u003eThe issue was fixed in commit \u003ca href=\"https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358\"\u003e4c65dbda9970a488e2ff21c8693fc6f6d70a3358\u003c/a\u003e.\u003c/p\u003e\n\u003ch3\u003eImpact\u003c/h3\u003e\n\u003cp\u003eValidation bypass: extra data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with \u003ccode\u003eextra=\u0027allow\u0027\u003c/code\u003e), with a key type annotated on \u003ccode\u003e__pydantic_extra__\u003c/code\u003e (e.g. \u003ccode\u003edict[Annotated[str, Field(pattern=...)], int]\u003c/code\u003e), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.\u003c/p\u003e\n\u003cp\u003ePython mode validation isn\u0027t affected.\u003c/p\u003e"
}
],
"value": "When validating JSON data into a model allowing extra data, the keys of extra data aren\u0027t validated against the key type annotated on __pydantic_extra__, resulting in extra data not matching the declared type. This is the case if you define __pydantic_extra__ as e.g. dict[Annotated[str, Field(pattern=r\u0027^x_\u0027)], int].\n\nThe validate_json_by_iteration() method (in pydantic-core/src/validators/model_fields.rs), used to validate JSON data into models, only validates the values of extra data, and stores the keys as is.\n\nThe issue was fixed in commit 4c65dbda9970a488e2ff21c8693fc6f6d70a3358.\n\nImpact: validation bypass, as extra data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted JSON data into models allowing extra data (with extra=\u0027allow\u0027), with a key type annotated on __pydantic_extra__ (e.g. dict[Annotated[str, Field(pattern=...)], int]), using Pydantic from 2.13.0 up to (but excluding) 2.14.2.\n\nPython mode validation isn\u0027t affected."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-20T07:32:01.421Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-qpmf-fgh3-ff25"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L540"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v2.13.5/pydantic-core/src/validators/model_fields.rs#L605-L623"
},
{
"url": "https://github.com/pydantic/pydantic/commit/4c65dbda9970a488e2ff21c8693fc6f6d70a3358"
}
],
"source": {
"advisory": "GHSA-qpmf-fgh3-ff25",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of extra data keys in JSON model validation"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133429",
"datePublished": "2026-11-20T07:32:01.421Z",
"dateReserved": "2026-11-19T19:50:17.136Z",
"dateUpdated": "2026-11-20T17:18:45.072Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133276 (GCVE-0-2026-133276)
Vulnerability from cvelistv5 – Published: 2026-11-19 16:15 – Updated: 2026-11-19 20:35
VLAI
EPSS
VEX
Title
Validation bypass of Pydantic V1 dataclasses allowing extra data
Summary
When extra data is allowed (extra=Extra.allow), providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation, so a __pydantic_initialised__ keyword argument overrides the internal flag used to skip validation of already validated instances. As a result, data returned by validation doesn't match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data. The issue was fixed in Pydantic 1.10.27. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:35 UTC
CWE
- CWE-20 - Improper Input Validation
References
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-133276",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:35:18.698700Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:35:26.495Z",
"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": [
{
"lessThan": "1.10.27",
"status": "affected",
"version": "1.10.0",
"versionType": "python"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "lullu57"
}
],
"descriptions": [
{
"lang": "en",
"value": "When extra data is allowed (extra=Extra.allow), providing a __pydantic_initialised__ key when validating a Pydantic V1 dataclass makes it considered as already validated, resulting in field values not being validated. The __init__() method of Pydantic V1 dataclasses stores all the provided keyword arguments in the instance __dict__ before validation, so a __pydantic_initialised__ keyword argument overrides the internal flag used to skip validation of already validated instances. As a result, data returned by validation doesn\u0027t match the declared type. Affected are applications validating untrusted data into Pydantic V1 dataclasses allowing extra data. The issue was fixed in Pydantic 1.10.27. Users relying on the pydantic.v1 namespace in Pydantic V2 should upgrade to 2.14.2 or later."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20: Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T16:22:07.903Z",
"orgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"shortName": "Pydantic"
},
"references": [
{
"tags": [
"vendor-advisory"
],
"url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-r49w-vh47-r4hf"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L295-L298"
},
{
"url": "https://github.com/pydantic/pydantic/blob/v1.10.26/pydantic/dataclasses.py#L430-L434"
},
{
"url": "https://github.com/pydantic/pydantic/commit/b26913fe6"
},
{
"url": "https://github.com/pydantic/pydantic/releases/tag/v2.14.2"
}
],
"source": {
"advisory": "GHSA-r49w-vh47-r4hf",
"discovery": "UNKNOWN"
},
"title": "Validation bypass of Pydantic V1 dataclasses allowing extra data"
}
},
"cveMetadata": {
"assignerOrgId": "7cec5f2f-3032-4006-8740-31f605ffab5f",
"assignerShortName": "Pydantic",
"cveId": "CVE-2026-133276",
"datePublished": "2026-11-19T16:15:01.429Z",
"dateReserved": "2026-11-19T16:11:10.703Z",
"dateUpdated": "2026-11-19T20:35:26.495Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-58203 (GCVE-0-2026-58203)
Vulnerability from cvelistv5 – Published: 2026-07-06 14:24 – Updated: 2026-07-06 16:19
VLAI
EPSS
VEX
Title
NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size
Summary
pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2.
Severity
5.3 (Medium)
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-07-06 16:19 UTC
CWE
Assigner
References
1 reference
| URL | Tags |
|---|---|
| https://github.com/pydantic/pydantic-settings/sec… | x_refsource_CONFIRM |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| pydantic | pydantic-settings |
Affected:
>= 2.12.0, < 2.14.2
|
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-58203",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-06T16:19:35.619669Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-07-06T16:19:59.090Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "pydantic-settings",
"vendor": "pydantic",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.12.0, \u003c 2.14.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-22",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-59",
"description": "CWE-59: Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-400",
"description": "CWE-400: Uncontrolled Resource Consumption",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-07-06T14:24:15.740Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
}
],
"source": {
"advisory": "GHSA-4xgf-cpjx-pc3j",
"discovery": "UNKNOWN"
},
"title": "NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-58203",
"datePublished": "2026-07-06T14:24:15.740Z",
"dateReserved": "2026-06-29T17:09:25.872Z",
"dateUpdated": "2026-07-06T16:19:59.090Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2024-3772 (GCVE-0-2024-3772)
Vulnerability from cvelistv5 – Published: 2024-04-15 01:42 – Updated: 2025-02-13 17:53
VLAI
EPSS
VEX
Title
Regular expression denial of service in Pydantic < 2.4.0
Summary
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
Severity
5.9 (Medium)
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-04-22 19:52 UTC
CWE
- CWE-1333 - Inefficient Regular Expression Complexity
Assigner
References
Impacted products
3 products
| Vendor | Product | Version | |
|---|---|---|---|
| Pydantic | Pydantic |
Affected:
2.0 , < 2.4.0
(semver)
Affected: 1.0 , < 1.10.13 (semver) |
|
| pydantic_project | pydantic |
Affected:
1.0 , < 1.10.13
(semver)
cpe:2.3:a:pydantic_project:pydantic:1.0:-:*:*:*:*:*:* |
|
| pydantic_project | pydantic |
Affected:
2.0
cpe:2.3:a:pydantic_project:pydantic:2.0:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:1.0:-:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
},
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:2.0:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"status": "affected",
"version": "2.0"
}
]
}
],
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-3772",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-04-22T19:52:22.735887Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-07-24T15:29:03.754Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-01T20:20:01.828Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"tags": [
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "Pydantic",
"versions": [
{
"lessThan": "2.4.0",
"status": "affected",
"version": "2.0",
"versionType": "semver"
},
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Sajeeb Lohani"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "Regular expression denial of service in Pydanic \u0026lt; 2.4.0, \u0026lt; 1.10.13 allows remote attackers to cause denial of service via a crafted email string.\u003cbr\u003e"
}
],
"value": "Regular expression denial of service in Pydanic \u003c 2.4.0, \u003c 1.10.13 allows remote attackers to cause denial of service via a crafted email string."
}
],
"impacts": [
{
"descriptions": [
{
"lang": "en",
"value": "Denial of Service"
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1333",
"description": "CWE-1333 Inefficient Regular Expression Complexity",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-04-26T02:05:56.157Z",
"orgId": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"shortName": "directcyber"
},
"references": [
{
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
}
],
"source": {
"discovery": "UNKNOWN"
},
"title": "Regular expression denial of service in Pydantic \u003c 2.4.0",
"x_generator": {
"engine": "Vulnogram 0.1.0-dev"
}
}
},
"cveMetadata": {
"assignerOrgId": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"assignerShortName": "directcyber",
"cveId": "CVE-2024-3772",
"datePublished": "2024-04-15T01:42:07.888Z",
"dateReserved": "2024-04-15T01:23:15.783Z",
"dateUpdated": "2025-02-13T17:53:00.106Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
CVE-2021-29510 (GCVE-0-2021-29510)
Vulnerability from cvelistv5 – Published: 2021-05-13 18:55 – Updated: 2024-08-03 22:11
VLAI
EPSS
VEX
Title
Use of "infinity" as an input to datetime and date fields causes infinite loop in pydantic
Summary
Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `'infinity'`, `'inf'` or `float('inf')` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can't upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you'll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic.
Severity
CWE
- CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/samuelcolvin/pydantic/security… | x_refsource_CONFIRM |
| https://github.com/samuelcolvin/pydantic/commit/7… | x_refsource_MISC |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
| https://lists.fedoraproject.org/archives/list/pac… | vendor-advisoryx_refsource_FEDORA |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| samuelcolvin | pydantic |
Affected:
>= 1.8.0, < 1.8.2
Affected: >= 1.7.0, < 1.7.4 Affected: < 1.6.2 |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-03T22:11:05.442Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "pydantic",
"vendor": "samuelcolvin",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.8.0, \u003c 1.8.2"
},
{
"status": "affected",
"version": "\u003e= 1.7.0, \u003c 1.7.4"
},
{
"status": "affected",
"version": "\u003c 1.6.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `\u0027infinity\u0027`, `\u0027inf\u0027` or `float(\u0027inf\u0027)` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can\u0027t upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you\u0027ll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 3.3,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-835",
"description": "CWE-835: Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2021-05-23T02:06:14.000Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
],
"source": {
"advisory": "GHSA-5jqp-qgf6-3pvh",
"discovery": "UNKNOWN"
},
"title": "Use of \"infinity\" as an input to datetime and date fields causes infinite loop in pydantic",
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2021-29510",
"STATE": "PUBLIC",
"TITLE": "Use of \"infinity\" as an input to datetime and date fields causes infinite loop in pydantic"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "pydantic",
"version": {
"version_data": [
{
"version_value": "\u003e= 1.8.0, \u003c 1.8.2"
},
{
"version_value": "\u003e= 1.7.0, \u003c 1.7.4"
},
{
"version_value": "\u003c 1.6.2"
}
]
}
}
]
},
"vendor_name": "samuelcolvin"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `\u0027infinity\u0027`, `\u0027inf\u0027` or `float(\u0027inf\u0027)` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can\u0027t upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you\u0027ll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 3.3,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-835: Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh",
"refsource": "CONFIRM",
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"name": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468",
"refsource": "MISC",
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"name": "FEDORA-2021-f8bb3ba3ec",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"name": "FEDORA-2021-4d3de3183f",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"name": "FEDORA-2021-e7fabd81fb",
"refsource": "FEDORA",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
}
]
},
"source": {
"advisory": "GHSA-5jqp-qgf6-3pvh",
"discovery": "UNKNOWN"
}
}
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2021-29510",
"datePublished": "2021-05-13T18:55:11.000Z",
"dateReserved": "2021-03-30T00:00:00.000Z",
"dateUpdated": "2024-08-03T22:11:05.442Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
FKIE_CVE-2026-58203
Vulnerability from fkie_nvd - Published: 2026-07-06 16:16 - Updated: 2026-10-25 20:10
Severity
Summary
pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2.
References
| URL | Tags | ||
|---|---|---|---|
| security-advisories@github.com | https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j | Exploit, Mitigation, Vendor Advisory | |
| 134c704f-9b21-4f2e-91b3-4a467353bcc0 | https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j | Exploit, Mitigation, Vendor Advisory |
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| pydantic | pydantic-settings | * |
{
"affected": [
{
"affectedData": [
{
"product": "pydantic-settings",
"vendor": "pydantic",
"versions": [
{
"status": "affected",
"version": "\u003e= 2.12.0, \u003c 2.14.2"
}
]
}
],
"source": "security-advisories@github.com"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:pydantic:pydantic-settings:*:*:*:*:*:*:*:*",
"matchCriteriaId": "931D9026-D16A-4D64-AF95-ADB223F74EFA",
"versionEndExcluding": "2.14.2",
"versionStartIncluding": "2.12.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap. This vulnerability is fixed in 2.14.2."
},
{
"lang": "es",
"value": "pydantic-settings proporciona gesti\u00f3n de configuraciones utilizando Pydantic. Desde 2.12.0 hasta 2.14.2, NestedSecretsSettingsSource lee valores secretos de archivos en un secrets_dir configurado. Cuando secrets_nested_subdir=True, se sigue una entrada de directorio dentro de secrets_dir que es un enlace simb\u00f3lico que apunta fuera de secrets_dir, por lo que los archivos fuera del directorio configurado se leen como valores de configuraci\u00f3n. La misma ruta de c\u00f3digo omite la protecci\u00f3n documentada secrets_dir_max_size. Un atacante o un componente con privilegios inferiores capaz de influir en las entradas del directorio de secretos configurado (por ejemplo, un montaje de secretos escribible o compartido) puede convertir esto en una lectura de archivo local no intencionada en la configuraci\u00f3n y puede anular el l\u00edmite de tama\u00f1o de carga anunciado. Esta vulnerabilidad est\u00e1 corregida en 2.14.2."
}
],
"id": "CVE-2026-58203",
"lastModified": "2026-10-25T20:10:00.147",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 3.4,
"source": "security-advisories@github.com",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-58203",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-07-06T16:19:35.619669Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-07-06T16:16:35.590",
"references": [
{
"source": "security-advisories@github.com",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
},
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
],
"url": "https://github.com/pydantic/pydantic-settings/security/advisories/GHSA-4xgf-cpjx-pc3j"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Analyzed",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-22"
},
{
"lang": "en",
"value": "CWE-59"
},
{
"lang": "en",
"value": "CWE-400"
}
],
"source": "security-advisories@github.com",
"type": "Secondary"
}
]
}
FKIE_CVE-2024-3772
Vulnerability from fkie_nvd - Published: 2024-04-15 03:16 - Updated: 2026-06-17 07:44
Severity
5.9 (Medium) - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
7.5 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
7.5 (High) - CVSS:3.1/
Summary
Regular expression denial of service in Pydanic < 2.4.0, < 1.10.13 allows remote attackers to cause denial of service via a crafted email string.
References
| URL | Tags | ||
|---|---|---|---|
| 430a6cef-dc26-47e3-9fa8-52fb7f19644e | https://github.com/pydantic/pydantic/pull/7360 | Exploit, Issue Tracking, Patch | |
| 430a6cef-dc26-47e3-9fa8-52fb7f19644e | https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/ | Mailing List, Third Party Advisory | |
| af854a3a-2127-422b-91ae-364da2661108 | https://github.com/pydantic/pydantic/pull/7360 | Exploit, Issue Tracking, Patch | |
| af854a3a-2127-422b-91ae-364da2661108 | https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/ | Mailing List, Third Party Advisory |
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Pydantic",
"repo": "https://github.com/pydantic/pydantic",
"vendor": "Pydantic",
"versions": [
{
"lessThan": "2.4.0",
"status": "affected",
"version": "2.0",
"versionType": "semver"
},
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
}
],
"source": "430a6cef-dc26-47e3-9fa8-52fb7f19644e"
},
{
"affectedData": [
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:1.0:-:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"lessThan": "1.10.13",
"status": "affected",
"version": "1.0",
"versionType": "semver"
}
]
},
{
"cpes": [
"cpe:2.3:a:pydantic_project:pydantic:2.0:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "pydantic",
"vendor": "pydantic_project",
"versions": [
{
"status": "affected",
"version": "2.0"
}
]
}
],
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*",
"matchCriteriaId": "ACBEEF19-DE3B-4435-9F93-DD9382A6A594",
"versionEndExcluding": "1.10.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*",
"matchCriteriaId": "A362CB47-987D-48D0-B033-D5EC8400C16B",
"versionEndExcluding": "2.4.0",
"versionStartIncluding": "2.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
},
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*",
"matchCriteriaId": "CC559B26-5DFC-4B7A-A27C-B77DE755DFF9",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Regular expression denial of service in Pydanic \u003c 2.4.0, \u003c 1.10.13 allows remote attackers to cause denial of service via a crafted email string."
},
{
"lang": "es",
"value": "La denegaci\u00f3n de servicio de expresi\u00f3n regular en Pydanic \u0026lt; 2.4.0, \u0026lt; 1.10.13 permite a atacantes remotos provocar denegaci\u00f3n de servicio a trav\u00e9s de una cadena de correo electr\u00f3nico manipulada."
}
],
"id": "CVE-2024-3772",
"lastModified": "2026-06-17T07:44:59.890",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 2.2,
"impactScore": 3.6,
"source": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2024-3772",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-04-22T19:52:22.735887Z",
"version": "2.0.3"
}
}
]
},
"published": "2024-04-15T03:16:07.987",
"references": [
{
"source": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"tags": [
"Exploit",
"Issue Tracking",
"Patch"
],
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"source": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"tags": [
"Mailing List",
"Third Party Advisory"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Exploit",
"Issue Tracking",
"Patch"
],
"url": "https://github.com/pydantic/pydantic/pull/7360"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Mailing List",
"Third Party Advisory"
],
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6JBZLMSH4GAZOVBMT2JUO2LXHY7M2ALI/"
}
],
"sourceIdentifier": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"vulnStatus": "Analyzed",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-1333"
}
],
"source": "430a6cef-dc26-47e3-9fa8-52fb7f19644e",
"type": "Secondary"
}
]
}
FKIE_CVE-2021-29510
Vulnerability from fkie_nvd - Published: 2021-05-13 19:15 - Updated: 2026-06-17 03:47
Severity
3.3 (Low) - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
7.5 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
7.5 (High) - CVSS:3.1/
Summary
Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `'infinity'`, `'inf'` or `float('inf')` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can't upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you'll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic.
References
Impacted products
| Vendor | Product | Version | |
|---|---|---|---|
| pydantic | pydantic | * | |
| pydantic | pydantic | * | |
| pydantic | pydantic | * | |
| fedoraproject | fedora | 33 | |
| fedoraproject | fedora | 34 |
{
"affected": [
{
"affectedData": [
{
"product": "pydantic",
"vendor": "samuelcolvin",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.8.0, \u003c 1.8.2"
},
{
"status": "affected",
"version": "\u003e= 1.7.0, \u003c 1.7.4"
},
{
"status": "affected",
"version": "\u003c 1.6.2"
}
]
}
],
"source": "security-advisories@github.com"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*",
"matchCriteriaId": "AB128BFE-64D3-4053-826B-1E8B76C013DB",
"versionEndExcluding": "1.6.2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*",
"matchCriteriaId": "023E6F5A-861D-46A2-AE11-44CF5CCBAB4C",
"versionEndExcluding": "1.7.4",
"versionStartIncluding": "1.7",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:pydantic:pydantic:*:*:*:*:*:*:*:*",
"matchCriteriaId": "6BB0298C-1CB8-422C-BE5A-17E0CD736E3E",
"versionEndExcluding": "1.8.2",
"versionStartIncluding": "1.8",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
},
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
"matchCriteriaId": "E460AA51-FCDA-46B9-AE97-E6676AA5E194",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"matchCriteriaId": "A930E247-0B43-43CB-98FF-6CE7B8189835",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `\u0027infinity\u0027`, `\u0027inf\u0027` or `float(\u0027inf\u0027)` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can\u0027t upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you\u0027ll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic."
},
{
"lang": "es",
"value": "Pydantic es un sistema de validaci\u00f3n de datos y gesti\u00f3n de configuraciones que utiliza las sugerencias de tipo de Python. En las versiones afectadas, pasar `\u0027infinity\u0027`, `\u0027inf\u0027` o `float(\u0027inf\u0027)` (o sus negativos) a los campos `datetime` o `date` hace que la validaci\u00f3n se ejecute eternamente con un uso del 100% de la CPU (en una CPU). Pydantic ha sido parcheado con correcciones disponibles en las siguientes versiones: v1.8.2, v1.7.4, v1.6.2. Todas estas versiones est\u00e1n disponibles en pypi(https://pypi.org/project/pydantic/#history), y estar\u00e1n disponibles en conda-forge(https://anaconda.org/conda-forge/pydantic) pronto. Consulta el registro de cambios(https://pydantic-docs.helpmanual.io/) para m\u00e1s detalles. Si no puedes actualizar absolutamente, puedes evitar este riesgo usando un validador(https://pydantic-docs.helpmanual.io/usage/validators/) para capturar estos valores. Esta no es una soluci\u00f3n ideal (en particular, necesitar\u00e1s una funci\u00f3n ligeramente diferente para las fechas), en lugar de un hack como este deber\u00edas actualizar pydantic. Si no est\u00e1s usando v1.8.x, v1.7.x o v1.6.x y no puedes actualizar a una versi\u00f3n fija de pydantic, por favor crea un issue en https://github.com/samuelcolvin/pydantic/issues solicitando un back-port, y nos esforzaremos en liberar un parche para versiones anteriores de pydantic"
}
],
"id": "CVE-2021-29510",
"lastModified": "2026-06-17T03:47:48.193",
"metrics": {
"cvssMetricV2": [
{
"acInsufInfo": false,
"baseSeverity": "MEDIUM",
"cvssData": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 5.0,
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"vectorString": "AV:N/AC:L/Au:N/C:N/I:N/A:P",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 2.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"source": "nvd@nist.gov",
"type": "Primary",
"userInteractionRequired": false
}
],
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 3.3,
"baseSeverity": "LOW",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 1.4,
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2021-05-13T19:15:08.023",
"references": [
{
"source": "security-advisories@github.com",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"source": "security-advisories@github.com",
"tags": [
"Mitigation",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"source": "security-advisories@github.com",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"source": "security-advisories@github.com",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
},
{
"source": "security-advisories@github.com",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/samuelcolvin/pydantic/commit/7e83fdd2563ffac081db7ecdf1affa65ef38c468"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Mitigation",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S2HT266L6Q7H6ICP7DFGXOGBJHNNKMKB/"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEFWM7DYKD2ZHE7R5YT5EQWJPV4ZKYRB/"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UMKAJX4O6IGBBCE32CO2G7PZQCCQSBLV/"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-835"
}
],
"source": "security-advisories@github.com",
"type": "Secondary"
}
]
}