Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend short string with huge exponent
-
DeliveryPydantic routes value to Fraction validator
-
ExploitCPython computes 10**exponent as big integer
-
ExecutionCPU-bound validation stalls worker
-
ImpactRepeat to exhaust service (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to define a Pydantic model/field typed as fractions.Fraction and to validate attacker-supplied input into it; per the vendor this affects both JSON and Python validation modes, INCLUDING strict mode, on Pydantic 2.10.0 through 2.13.x. The malicious input must use exponent notation with a large exponent (e.g. '1e8000000'); no authentication or user interaction is needed given the field is reachable (PR:N/UI:N). The key LIMITING factor is that Fraction fields are uncommon in typical Pydantic schemas, so the vast majority of Pydantic deployments are not exposed; only applications that specifically accept untrusted Fraction values are affected. Impact is availability-only (CPU exhaustion), with no confidentiality or integrity effect. |
| Impact | This is a moderate-severity denial-of-service (CWE-400) issue whose real-world priority is bounded by a narrow exposure condition. The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) with base score 6.3 indicates network-reachable, low-complexity, unauthenticated triggering, but the AT:P (attack requirement) and the VA:L/VC:N/VI:N impact profile correctly reflect that the only consequence is partial availability degradation and that a specific deployment condition must hold: the application must validate untrusted strings into a Pydantic Fraction field. No EPSS score is provided and the vulnerability is NOT in CISA KEV, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence item rather than a fire drill. No standalone exploit code is referenced in the inputs, though the advisory itself discloses a trivially effective triggering input (e.g. '1e8000000'), so weaponization is low-effort where an exposed Fraction field exists. Net: a genuine but conditional DoS - prioritize where Fraction fields accept untrusted input, otherwise it is a high-population-product / low-exposure-surface issue rather than an urgent one. |
| Exploit ScenarioDerived | An attacker submits a short JSON or form value such as '1e32000000' to an endpoint backed by a Pydantic model containing a Fraction-typed field. Pydantic passes the string to CPython's Fraction constructor, which eagerly computes 10**exponent as a multi-million-digit integer, consuming seconds of CPU per request; repeating this exhausts worker capacity. The CVSS AV:N/AC:L/PR:N make the request itself trivial to deliver, and the advisory discloses working trigger strings, though no packaged exploit is referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Denial of service in Pydantic 2.10.0 through 2.13.x lets a remote, unauthenticated attacker burn CPU by submitting a few bytes of exponent-notation text (for example '1e8000000') to any model field typed as fractions.Fraction, because pydantic-core passes the string straight to CPython's Fraction constructor, which materialises 10**exp as a full arbitrary-precision integer. Exposure is narrow: the application must actually accept untrusted input into a Fraction field, in either JSON or Python validation mode, including strict mode, and schemas without such fields are unaffected. The issue is fixed in 2.14.0, which rejects exponents with an absolute value above 4300; no public exploit identified at time of analysis.
RemediationAI
Upgrade to pydantic 2.14.0, the release in which the fraction validator rejects exponents whose absolute value exceeds 4300 with a fraction_parsing error; this is the complete vendor fix and the change is visible in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5 and advisory GHSA-gj4f-r7mf-jjxh. Because the affected code path only triggers through a Fraction-typed field, an interim measure for teams that cannot upgrade on the same schedule is to keep fractions.Fraction fields off any schema that receives untrusted input, or to pre-screen incoming strings before they reach Pydantic (reject exponent notation outright, or cap the exponent length after normalising non-ASCII digits) - with the trade-off that legitimate scientific-notation values are then refused and any application-side filter must be kept in sync with the validator's own parsing rules. Request-level timeouts or rate limiting only bound the blast radius of an individual payload; they do not stop the expensive 10**exp computation once a request is accepted. Prioritise the upgrade in any service that exposes a Fraction field to external callers.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives at the boundary between pydantic-core, a Rust extension built with pyo3, and the Python standard library. pydantic-core's fraction validator (src/validators/fraction.rs) delegates string parsing to CPython's fractions.Fraction, whose parser in Lib/fractions.py recognises exponent notation and, for a non-negative exponent, computes numerator *= 10**exp as an arbitrary-precision integer. A handful of bytes such as '1e8000000' therefore forces allocation and arithmetic on a multi-million-digit integer, costing seconds of CPU per validated value - CWE-400 uncontrolled resource consumption, availability-only impact. Because the exponent is parsed with int(), non-ASCII decimal digits (Arabic-Indic, fullwidth) can also carry the oversized exponent, so naive ASCII-only input filtering is insufficient. The upstream fix in commit 69ed168e9ad465eef4c8d81efb152a93b604daf5 pre-parses the exponent in Rust before calling Fraction, rejects any value whose absolute value exceeds MAX_FRACTION_EXPONENT = 4300 with a fraction_parsing validation error, and treats an exponent that does not fit in an i64 as over the limit; this matches the 4300-digit cap already applied to int inputs. The commit also extends the test suite to cover Python mode, JSON mode, strict JSON mode and validate_strings for both in-limit and over-limit exponents.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable unauthenticated string triggers CPU-bound computation (AV:N/AC:L/PR:N/UI:N); impact is partial availability degradation only, so A:L and C:N/I:N.
Primary rating from Vendor (Pydantic).
CVSS VectorVendor: Pydantic
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-131091
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB