CVE-2026-120202
Security scan bypass: nested dirs/.pyc ignored, allowing hidden malicious payloads.
- CVSS 7.1
- CWE-693
- Input Validation and Sanitization
- Remote
Highflame ramparts 0.8.1 through 0.8.10 contains a security scan bypass vulnerability that allows attackers to hide malicious payloads because collect_bundle_siblings and walk_bundle_subdir skip nested directories and .pyc files. Attackers can distribute a skill bundle with an unchecked-hash .pyc under scripts//__pycache__/ that ramparts silently ignores, while CPython executes it when the skill runs.
- CWE
- CWE-693
- CVSS base score
- 7.1
- Published
- 2026-10-31
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Direct Object References (IDOR)
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- ramparts
- Fixed by upgrading
- Yes
Solution
Upgrade Highflame Ramparts to version 0.8.11, which patches the scan‑bypass issue.
Vulnerable code sample
import os
import importlib.util
def load_bundle_scripts(bundle_dir):
"""
Load all .py script files from a skill bundle, ignoring hidden
directories and compiled bytecode files.
"""
script_dir = os.path.join(bundle_dir, "scripts")
for root, dirs, files in os.walk(script_dir):
# VULNERABLE: skips .pyc files, allowing malicious compiled code to be executed by CPython
for filename in files:
if filename.endswith('.py'):
path = os.path.join(root, filename)
spec = importlib.util.spec_from_file_location("_bundle_module", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)Patched code sample
import os
import importlib.util
def load_bundle_scripts(bundle_dir):
"""
Load all .py script files from a skill bundle, including compiled
bytecode files that reside in __pycache__.
"""
script_dir = os.path.join(bundle_dir, "scripts")
for root, dirs, files in os.walk(script_dir):
# FIX: also load .pyc files to prevent hidden malicious bytecode from being ignored
for filename in files:
if filename.endswith('.py') or filename.endswith('.pyc'):
path = os.path.join(root, filename)
spec = importlib.util.spec_from_file_location("_bundle_module", path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)Cite this entry
@misc{vaitp:cve2026120202,
title = {{Security scan bypass: nested dirs/.pyc ignored, allowing hidden malicious payloads.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-120202},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-120202/}}
}
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 ::
