CVE-2026-133426Unbounded exponent in Fraction validation
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pydantic | Fix pending | UBUNTU-CVE-2026-133426 | |
| Ubuntu 26.04 | pydantic | Under investigation | UBUNTU-CVE-2026-133426 | |
| Ubuntu 24.04 | pydantic | Under investigation | UBUNTU-CVE-2026-133426 | |
| Ubuntu 22.04 | pydantic | Fix pending | UBUNTU-CVE-2026-133426 | |
| Ubuntu 20.04 | pydantic | Fix pending | UBUNTU-CVE-2026-133426 | |
| Debian 14 | pydantic | Fixed | 2.14.0-1 | DEBIAN-CVE-2026-133426 |
| Debian 13 | pydantic | Fix pending | DEBIAN-CVE-2026-133426 | |
| Red Hat Enterprise Linux 10 | linux-mcp-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | linux-mcp-server | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by Pydantic, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pydantic: affected: 2.10.0 to before 2.14.0; fixed in
2.14.0
Vendor advisories:
References
- https://github.com/pydantic/pydantic/security/advisories/GHSA-gj4f-r7mf-jjxh
- https://github.com/python/cpython/blob/v3.14.8/Lib/fractions.py#L275-L281
- https://github.com/pydantic/pydantic/commit/69ed168e9ad465eef4c8d81efb152a93b604daf5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.