CVE-2026-18287
Remote code execution via unvalidated user string in load_time_series_segmentation_benchmark.
- CVSS 7.8
- CWE-94
- Input Validation and Sanitization
- Remote
Aeon load_time_series_segmentation_benchmark 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_time_series_segmentation_benchmark 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-29159.
- CWE
- CWE-94
- 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 2.0.1, which patches the load_time_series_segmentation_benchmark code‑injection flaw.
Vulnerable code sample
import pandas as pd
class AeonBenchmark:
def load_time_series_segmentation_benchmark(self, config_path: str):
# VULNERABLE: eval on untrusted config string
with open(config_path, 'r') as f:
cfg_str = f.read()
cfg = eval(cfg_str) # insecure
df = pd.read_csv(cfg['data_file'])
# ...process df...
return df.head()Patched code sample
import pandas as pd
import ast
class AeonBenchmark:
def load_time_series_segmentation_benchmark(self, config_path: str):
# FIX: safe parsing of config using ast.literal_eval
with open(config_path, 'r') as f:
cfg_str = f.read()
cfg = ast.literal_eval(cfg_str)
df = pd.read_csv(cfg['data_file'])
# ...process df...
return df.head()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:cve202618287,
title = {{Remote code execution via unvalidated user string in load_time_series_segmentation_benchmark.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-18287},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-18287/}}
}
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 ::
