Skip to main content
Vulnerability Database/CVE-2026-112080

CVE-2026-112080: LlamaChinese Llama-Chinese RCE Vulnerability

CVE-2026-112080 is a remote code execution vulnerability in LlamaChinese Llama-Chinese affecting the Adapter Config component. Attackers can exploit code injection via base_model_name_or_path parameter. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112080 Overview

CVE-2026-112080 is a code injection vulnerability in the LlamaChinese Llama-Chinese project, affecting commits up to 6fa0fffb0dd82fe3cfaa1449ee54a5806d26ae9b. The flaw resides in the get_class_from_dynamic_module function within examples/chat_gradio_no_merge.py, part of the Adapter Config component. Attackers can manipulate the base_model_name_or_path argument to inject code that executes within the application context. The project uses a rolling release model, so no fixed version has been published. A public proof-of-concept is available, and the maintainers have not yet responded to the issue report.

Critical Impact

Remote attackers can achieve code injection through the base_model_name_or_path argument, though exploitation requires user interaction and the project has not released a patch.

Affected Products

  • LlamaChinese Llama-Chinese (rolling release)
  • Commits up to 6fa0fffb0dd82fe3cfaa1449ee54a5806d26ae9b
  • examples/chat_gradio_no_merge.py Adapter Config component

Discovery Timeline

  • 2026-10-19 - CVE-2026-112080 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112080

Vulnerability Analysis

The vulnerability sits inside the get_class_from_dynamic_module function in examples/chat_gradio_no_merge.py. This function is part of the Adapter Config component used to load model classes dynamically at runtime. When the function processes the base_model_name_or_path argument, it fails to validate or sanitize the supplied value before passing it into a dynamic module resolution path. An attacker who controls this argument can inject code that executes in the host process. The weakness is classified under [CWE-74] Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection).

Root Cause

The root cause is unsafe handling of untrusted input in a dynamic class-loading routine. Python functions that resolve classes from module paths at runtime execute import side effects. When attacker-controlled strings reach such routines without validation, module-level code runs in the Llama-Chinese process. The absence of an allowlist or path sanitation on base_model_name_or_path enables the injection.

Attack Vector

The attack is remote and requires user interaction, consistent with a Gradio chat interface where a victim loads an attacker-supplied model path. An attacker crafts a malicious base_model_name_or_path value and persuades a user to pass it into the vulnerable example application. Once processed, the injected code executes with the privileges of the Llama-Chinese runtime. A proof-of-concept archive is distributed through GitHub attachments referenced in GitHub Issue #371 Discussion and GitHub PoC File Download.

No synthetic exploitation code is reproduced here. Refer to the referenced issue and PoC archive for technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-112080

Indicators of Compromise

  • Unexpected child processes spawned by Python interpreters running chat_gradio_no_merge.py.
  • Outbound network connections initiated by the Llama-Chinese process to unrecognized hosts shortly after a model load event.
  • Writes to Python dynamic module cache directories (__pycache__) containing files not matching the project's known modules.

Detection Strategies

  • Monitor invocations of get_class_from_dynamic_module with abnormal base_model_name_or_path values that contain path traversal sequences, URLs, or shell metacharacters.
  • Instrument the Python runtime with import hooks that log the full module path and origin whenever a dynamic class is resolved from user input.
  • Correlate Gradio HTTP request logs with subsequent process execution events to surface user-interaction-driven exploitation.

Monitoring Recommendations

  • Enable process execution and file integrity monitoring on hosts running Llama-Chinese example scripts.
  • Capture command-line arguments for all Python processes to retain forensic evidence of injected module paths.
  • Review GitHub issue #371 and the VulDB CVE-2026-112080 entry for updated indicators as the project responds.

How to Mitigate CVE-2026-112080

Immediate Actions Required

  • Remove examples/chat_gradio_no_merge.py from production deployments until the maintainers respond to the issue report.
  • Restrict the base_model_name_or_path argument to an allowlist of trusted model identifiers controlled by the operator, not end users.
  • Run the Gradio example only inside an isolated sandbox or container with no sensitive credentials or network access to internal services.

Patch Information

No patch is available. The project operates on a rolling release model and has not responded to the issue report at the time of publication. Track updates through the GitHub Llama-Chinese Repository and the VulDB Vulnerability #421759 entry.

Workarounds

  • Disable the affected example and replace it with a hardened loader that validates model paths against a static allowlist.
  • Enforce strict input validation on any user-supplied string that feeds into Python dynamic import or class-resolution functions.
  • Operate the application under a least-privilege service account to limit the impact of successful code injection.

No sanitized configuration example is provided. Consult the project repository for upstream guidance once a fix is published.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.