VAITP Dataset

← Back to the dataset

CVE-2026-116103

Code injection via malicious txt in NNabla's load_param_in_txt (≤1.39.0).

  • CVSS 2.1
  • CWE-74
  • Input Validation and Sanitization
  • Remote

A vulnerability was identified in Sony Neural Network Libraries up to 1.39.0. This affects the function load_param_in_txt of the file python/src/nnabla/utils/cli/encode_decode_param.py of the component Encode Param Command Handler. Such manipulation leads to code injection. It is possible to launch the attack remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way. This vulnerability only affects products that are no longer supported by the maintainer.

CVSS base score
2.1
Published
2026-10-26
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
Sony Neural Network Libraries
Fixed by upgrading
Yes

Solution

Upgrade Sony Neural Network Libraries to version 1.40.0 (or later), which patches the load_param_in_txt code‑injection vulnerability.

Vulnerable code sample

import argparse
import os

def load_param_in_txt(path):
    # VULNERABLE: uses eval on untrusted file content
    with open(path, 'r') as f:
        data = f.read()
    params = eval(data)  # noqa: S307
    return params

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('param_file', help='Path to parameter txt')
    args = parser.parse_args()
    if not os.path.isfile(args.param_file):
        raise FileNotFoundError(args.param_file)
    params = load_param_in_txt(args.param_file)
    # Use params for further processing (omitted)

if __name__ == '__main__':
    main()

Patched code sample

import argparse
import os
import ast

def load_param_in_txt(path):
    # FIX: replace eval with safe literal parsing
    with open(path, 'r') as f:
        data = f.read()
    params = ast.literal_eval(data)
    return params

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('param_file', help='Path to parameter txt')
    args = parser.parse_args()
    if not os.path.isfile(args.param_file):
        raise FileNotFoundError(args.param_file)
    params = load_param_in_txt(args.param_file)
    # Use params for further processing (omitted)

if __name__ == '__main__':
    main()

Cite this entry

@misc{vaitp:cve2026116103,
  title        = {{Code injection via malicious txt in NNabla's load_param_in_txt (≤1.39.0).}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-116103},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116103/}}
}

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.