Skip to main content

Pydantic EUVDEUVD-2026-131091

| CVE-2026-133426 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-11-20 Pydantic
6.3
CVSS 4.0 · Vendor: Pydantic
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send short string with huge exponent
  2. Delivery
    Pydantic routes value to Fraction validator
  3. Exploit
    CPython computes 10**exponent as big integer
  4. Execution
    CPU-bound validation stalls worker
  5. Impact
    Repeat 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Pydantic 2.10.0 <2.14.0

Affected Packages

euvd pydantic fix: 2.14.0

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

Vendor (Pydantic) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (Pydantic).

CVSS VectorVendor: Pydantic

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 09:02 EUVD
CVE Published
Nov 20, 2026 - 07:32 cve.org
MEDIUM 6.3

DescriptionCVE.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

EPSS Score
0.7%
Top 48% exploitable
Prevalence
High
Pydantic is a very widely deployed Python validation library (FastAPI ecosystem, etc.)
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy