VAITP Dataset

← Back to the dataset

CVE-2026-77602

Auth non-admin can inject and execute code via config files

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

OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. From 5.1.0 until 7.3.0, authenticated non-administrator users can write content under targets_modified/ that is later executed by multiple configuration paths below the intended code-execution privilege tier. Table and command or telemetry definitions are processed through ConfigParser, PacketConfig, GENERIC_READ_CONVERSION, or GENERIC_WRITE_CONVERSION, allowing ERB rendering or Ruby and Python evaluation, while openc3-cosmos-script-runner-api/scripts/run_suite_analysis.rb executes suite procedure files through require. Storage uploads, screen saves, and script creation can place content in the overlay, and triggering table processing, a cmd/tlm reload, or suite analysis executes the content in cmd-tlm-api, decom microservices, or Script Runner with access to internal credentials and data. This issue is fixed in version 7.3.0.

CVSS base score
9.9
Published
2026-09-23
OWASP
A08 Software and Data Integrity Failures
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
OpenC3 COSMOS

Solution

Upgrade OpenC3 COSMOS to version 7.3.0 (or later) to apply the fix.

Vulnerable code sample

import configparser
import os

class TableProcessor:
    def __init__(self, config_path):
        self.config_path = config_path

    def load_table(self, table_name):
        cfg = configparser.ConfigParser()
        cfg.read(os.path.join(self.config_path, f"{table_name}.ini"))
        # VULNERABLE: eval on untrusted config value
        conversion = eval(cfg.get('conversion', 'code'))
        return conversion.process(cfg.get('data', 'raw'))

Patched code sample

import configparser
import os
import ast

class TableProcessor:
    def __init__(self, config_path):
        self.config_path = config_path

    def load_table(self, table_name):
        cfg = configparser.ConfigParser()
        cfg.read(os.path.join(self.config_path, f"{table_name}.ini"))
        # FIX: use ast.literal_eval to avoid code execution
        conversion = ast.literal_eval(cfg.get('conversion', 'code'))
        return conversion.process(cfg.get('data', 'raw'))

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.

Cite this entry

@misc{vaitp:cve202677602,
  title        = {{Auth non-admin can inject and execute code via config files}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-77602},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-77602/}}
}

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.