CVE-2026-112140
Remote code injection via manipulated model_lib argument in _get_lib_module.
- CVSS 2.1
- CWE-74
- Input Validation and Sanitization
- Remote
A vulnerability was found in llSourcell Doctor-Dignity up to 3f2ffb6c892f13b50a708d05900d3227acb40ded. This impacts the function _get_lib_module of the file python/mlc_chat/chat_module.py. The manipulation of the argument model_lib results in code injection. The attack may be launched remotely. The exploit has been made public and could be used. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases. The project was informed of the problem early through an issue report but has not responded yet.
- CWE
- CWE-74
- CVSS base score
- 2.1
- Published
- 2026-10-19
- 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
- Python
Solution
Upgrade the package to the latest commit (the fix is only available in the current master branch; no specific version number exists).
Vulnerable code sample
import importlib
def _get_lib_module(model_lib: str):
# VULNERABLE: unsanitized dynamic import allows code injection
return importlib.import_module(model_lib)Patched code sample
import importlib
ALLOWED_LIBS = {"torch", "tensorflow", "jax"}
def _get_lib_module(model_lib: str):
# FIX: validate against whitelist to prevent injection
if model_lib not in ALLOWED_LIBS:
raise ValueError("Unsupported model library")
return importlib.import_module(model_lib)Cite this entry
@misc{vaitp:cve2026112140,
title = {{Remote code injection via manipulated model_lib argument in _get_lib_module.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-112140},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-112140/}}
}
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 ::
