VAITP Dataset

← Back to the dataset

CVE-2026-44265

Arbitrary code execution via unsanitized AST fields leading to injection in JS, Ruby, Python, and SQL.

  • CVSS 7.4
  • CWE-20
  • Input Validation and Sanitization
  • Remote

Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, Elo's programmatic AST API accepts arbitrary values from JSON-deserialized input, plugin output, or other untyped sources and interpolates them into generated JavaScript, Ruby, Python, or SQL without runtime syntax validation. The affected fields are int_literal / float_literal .value, variable.name, member_access.property, object_literal keys, datapath segments, lambda.params[].name, and the SQL let binding name. Crafted values become executable expressions or identifiers, allowing arbitrary code execution in JavaScript, Ruby, and Python targets and SQL injection in the SQL target. This programmatic AST-object path is distinct from the plain-string constructor-chain sandbox escape. This issue is fixed in version 1.0.1.

CVSS base score
7.4
Published
2026-11-03
OWASP
A03 Injection
Orthogonal defect classification
Interface
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Elo
Fixed by upgrading
Yes

Solution

Upgrade Elo to version 1.0.1 or later.

Vulnerable code sample

import json
from elo import ast

def build_expression(json_input):
    # VULNERABLE: directly using unvalidated JSON value in AST literal
    data = json.loads(json_input)
    # data['num'] may be a malicious string like "__import__('os').system('rm -rf /')"
    literal = ast.int_literal(value=data['num'])
    return ast.lambda_expr(params=[], body=literal)

Patched code sample

import json
from elo import ast

def build_expression(json_input):
    # FIX: validate and coerce input to an integer before inserting into AST
    data = json.loads(json_input)
    try:
        safe_value = int(data['num'])
    except (ValueError, TypeError):
        raise ValueError("Invalid integer literal")
    literal = ast.int_literal(value=safe_value)
    return ast.lambda_expr(params=[], body=literal)

Cite this entry

@misc{vaitp:cve202644265,
  title        = {{Arbitrary code execution via unsanitized AST fields leading to injection in JS, Ruby, Python, and SQL.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-44265},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-44265/}}
}

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.