VAITP Dataset

← Back to the dataset

CVE-2026-104020

Uncontrolled recursion in Ion Python <0.15.0 can cause DoS via deep nesting.

  • CVSS 8.7
  • CWE-674
  • Resource Management
  • Remote

Uncontrolled recursion in the Ion reader in Amazon Ion Python before 0.15.0 might allow a remote unauthenticated actor to crash the application using the library, resulting in a denial of service, via a crafted, deeply nested Ion value. To remediate this issue, users should upgrade to version 0.15.0 or later.

CVSS base score
8.7
Published
2026-10-01
OWASP
A06 Vulnerable and Outdated Components
Orthogonal defect classification
Algorithm
Code defect classification
Incorrect Algorithm
Category
Resource Management
Subcategory
Resource Exhaustion
Accessibility scope
Remote
Impact
Denial of Service (DoS)
Affected component
Amazon Ion Python
Fixed by upgrading
Yes

Solution

Upgrade the Amazon Ion Python library to version 0.15.0 or newer.

Vulnerable code sample

import amazon.ion.simpleion as ion

def parse_ion(data: bytes):
    # VULNERABLE: uncontrolled recursion allows deep nesting crash
    return ion.loads(data)

Patched code sample

import amazon.ion.simpleion as ion

def parse_ion(data: bytes):
    # FIX: limit recursion depth to prevent exhaustion
    return ion.loads(data, max_depth=100)

Cite this entry

@misc{vaitp:cve2026104020,
  title        = {{Uncontrolled recursion in Ion Python <0.15.0 can cause DoS via deep nesting.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-104020},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-104020/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.