VAITP Dataset

← Back to the dataset

CVE-2026-18286

Remote code execution via unvalidated string in load_human_activity_segmentation_datasets.

  • CVSS 7.8
  • CWE-94
  • Input Validation and Sanitization
  • Remote

Aeon load_human_activity_segmentation_datasets Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of aeon. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the load_human_activity_segmentation_datasets method. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-29160.

CVSS base score
7.8
Published
2026-08-20
OWASP
A03 Injection
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Aeon
Fixed by upgrading
Yes

Solution

Upgrade aeon to version 1.2.0 (or later), which includes the fix for the load_human_activity_segmentation_datasets code‑injection vulnerability.

Vulnerable code sample

import os
import json

class AeonDataLoader:
    def __init__(self, base_path):
        self.base_path = base_path

    def load_human_activity_segmentation_datasets(self, config_str):
        """
        Load segmentation datasets based on a user‑supplied configuration string.
        The config_str is expected to be a Python dictionary literal.
        """
        # VULNERABLE: executing untrusted string with eval
        config = eval(config_str)  # noqa: S307
        datasets = []
        for name, rel_path in config.items():
            full_path = os.path.join(self.base_path, rel_path)
            with open(full_path, 'r') as f:
                data = json.load(f)
                datasets.append((name, data))
        return datasets

Patched code sample

import os
import json
import ast

class AeonDataLoader:
    def __init__(self, base_path):
        self.base_path = base_path

    def load_human_activity_segmentation_datasets(self, config_str):
        """
        Load segmentation datasets based on a user‑supplied configuration string.
        The config_str is expected to be a JSON object or Python dict literal.
        """
        # FIX: safely parse configuration without executing code
        try:
            config = ast.literal_eval(config_str)
        except (ValueError, SyntaxError):
            config = json.loads(config_str)
        datasets = []
        for name, rel_path in config.items():
            full_path = os.path.join(self.base_path, rel_path)
            with open(full_path, 'r') as f:
                data = json.load(f)
                datasets.append((name, data))
        return datasets

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

  • loading issues (#3333) (aeon-toolkit/aeon)
    aeon/datasets/rehabpile_loader.py · load_rehab_pile_dataset, aeon/datasets/_tss_data_loaders.py, aeon/datasets/_tss_data_loaders.py · load_human_activity_segmentation_datasets, aeon/datasets/_tss_data_loaders.py · load_time_series_segmentation_benchmark

Cite this entry

@misc{vaitp:cve202618286,
  title        = {{Remote code execution via unvalidated string in load_human_activity_segmentation_datasets.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-18286},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-18286/}}
}

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.