CVE-2026-116104
Code injection via crafted function.type in Sony NNabla up to 1.39.0.
- CVSS 2.1
- CWE-74
- Input Validation and Sanitization
- Remote
A security flaw has been discovered in Sony Neural Network Libraries up to 1.39.0. This impacts the function func_set_nnabla_version_decorate of the file python/src/nnabla/utils/converter/utils.py of the component NNP Converter. Performing a manipulation of the argument function.type results in code injection. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks. 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.
- CWE
- CWE-74
- CVSS base score
- 2.1
- Published
- 2026-10-26
- OWASP
- A03 Injection
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- 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 to nnabla ≥ 1.40.0, which fixes the func_set_nnabla_version_decorate code‑injection flaw.
Vulnerable code sample
import types
def func_set_nnabla_version_decorate(func: types.FunctionType):
# VULNERABLE: exec on untrusted attribute
exec(f"func.version = {func.type}")Patched code sample
import types
def func_set_nnabla_version_decorate(func: types.FunctionType):
# FIX: sanitize untrusted attribute before use
allowed = {"float", "int", "double"}
if getattr(func, "type", None) in allowed:
func.version = func.type
else:
raise ValueError("Unsupported function type")Cite this entry
@misc{vaitp:cve2026116104,
title = {{Code injection via crafted function.type in Sony NNabla up to 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-116104},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116104/}}
}
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 ::
