CVE-2026-133426 (GCVE-0-2026-133426)

Vulnerability from cvelistv5 – Published: 2026-11-20 07:32 – Updated: 2026-11-20 17:19
VLAI
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.
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
Impacted products
Vendor Product Version
pydantic pydantic Affected: 2.10.0 , < 2.14.0 (python)
Create a notification for this product.
Show details on NVD website

{
  "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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-133426",
      "date": "2026-11-22",
      "epss": "0.00798",
      "percentile": "0.57438"
    },
    "microsoft_vex": {
      "current_release_date": "2026-11-20T18:06:59.000Z",
      "cve": "CVE-2026-133426",
      "id": "msrc_CVE-2026-133426",
      "initial_release_date": "2026-11-20T18:06:59.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "Unbounded exponent in Fraction validation",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-133426.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://pypi.org",
                "defaultStatus": "unaffected",
                "packageName": "pydantic",
                "product": "pydantic",
                "repo": "https://github.com/pydantic/pydantic",
                "vendor": "pydantic",
                "versions": [
                  {
                    "lessThan": "2.14.0",
                    "status": "affected",
                    "version": "2.10.0",
                    "versionType": "python"
                  }
                ]
              }
            ],
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "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."
          }
        ],
        "id": "CVE-2026-133426",
        "lastModified": "2026-11-20T18:18:48.130",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "LOW",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2026-133426",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-11-20T17:19:41.947644Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2026-11-20T08:18:32.463",
        "references": [
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5"
          },
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/pydantic/pydantic/security/advisories/GHSA-gj4f-r7mf-jjxh"
          },
          {
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "url": "https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281"
          }
        ],
        "sourceIdentifier": "7cec5f2f-3032-4006-8740-31f605ffab5f",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-400"
              }
            ],
            "source": "7cec5f2f-3032-4006-8740-31f605ffab5f",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-20T11:56:19+00:00",
      "cve": "CVE-2026-133426",
      "id": "CVE-2026-133426",
      "initial_release_date": "2026-11-20T07:32:42.640000+00:00",
      "product_status:known_affected": "133",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "pydantic: pydantic: Denial of Service via large exponents in Fraction validation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-133426.json",
      "version": "3"
    },
    "vulnrichment": {
      "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:47.231Z",
              "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…