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-108943 Overview
CVE-2026-108943 is a code injection vulnerability [CWE-74] in ModelTC LightX2V versions up to 0.5.0. The flaw resides in the AutoTokenizer.from_pretrained function within lightx2v/models/runners/cosmos3/cosmos3_runner.py, part of the Tokenizer component. An attacker with local access can manipulate the auto_map argument to inject and execute arbitrary code. A public exploit exists, increasing the risk of opportunistic use. The project maintainers were notified through an issue report but have not responded.
Critical Impact
Local attackers can execute arbitrary code within the LightX2V process by abusing the auto_map argument during tokenizer loading, leading to compromise of model-serving environments.
Affected Products
- ModelTC LightX2V versions up to and including 0.5.0
- Component: Tokenizer (lightx2v/models/runners/cosmos3/cosmos3_runner.py)
- Deployments loading untrusted tokenizer configurations via AutoTokenizer.from_pretrained
Discovery Timeline
- 2026-10-13 - CVE-2026-108943 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-108943
Vulnerability Analysis
The vulnerability stems from unsafe handling of the auto_map argument passed to Hugging Face's AutoTokenizer.from_pretrained. LightX2V's cosmos3_runner.py invokes this loader without restricting dynamic module resolution. When trust_remote_code style behavior is permitted, auto_map entries can reference arbitrary Python modules and classes. These references are imported and instantiated at load time, which turns tokenizer configuration into a code execution primitive. Exploitation requires local access and low-level privileges but no user interaction.
Root Cause
The root cause is a failure to validate or constrain the auto_map field within tokenizer configuration data before Python resolves and executes the mapped class. The CWE-74 classification identifies this as improper neutralization of special elements in output used by a downstream component. LightX2V trusts configuration input that should be treated as untrusted when the tokenizer path originates outside the application.
Attack Vector
An attacker with local access stages a malicious tokenizer directory containing a crafted configuration file. When LightX2V loads this tokenizer through the vulnerable cosmos3_runner.py code path, the auto_map entry resolves to attacker-controlled Python code. The code executes under the privileges of the LightX2V process. See the GitHub LightX2V Issue #1559 and VulDB CVE-2026-108943 entry for additional technical context.
No verified exploit code is reproduced here. Refer to the public references above for the disclosed proof of concept.
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 AttemptsDetection Methods for CVE-2026-108943
Indicators of Compromise
- Tokenizer directories on disk containing auto_map entries that reference non-standard or external Python modules
- Unexpected child processes spawned by the LightX2V Python interpreter during model or tokenizer loading
- Python import events resolving to modules outside the LightX2V virtual environment or site-packages
Detection Strategies
- Audit tokenizer configuration files for auto_map keys and flag any that reference modules not shipped by the Hugging Face Transformers library
- Monitor file integrity for the lightx2v/models/runners/cosmos3/ directory and tokenizer cache paths used by the application
- Enable Python audit hooks (sys.addaudithook) to log dynamic imports triggered during from_pretrained calls
Monitoring Recommendations
- Log and alert on process execution lineage where the LightX2V Python runtime spawns shells, interpreters, or network utilities
- Capture command-line arguments and environment variables for LightX2V worker processes to identify tokenizer path manipulation
- Correlate local filesystem writes to tokenizer directories with subsequent model-loading activity
How to Mitigate CVE-2026-108943
Immediate Actions Required
- Restrict local access to the LightX2V host and to any directory from which tokenizers are loaded
- Validate all tokenizer sources and reject configurations containing auto_map entries that reference untrusted modules
- Run LightX2V under a dedicated low-privilege service account to limit the blast radius of code execution
Patch Information
No vendor patch is currently available. According to the disclosure, the project was informed through an issue report but has not responded. Monitor the ModelTC LightX2V GitHub repository and Issue #1559 for a fix.
Workarounds
- Load tokenizers only from vetted, read-only directories controlled by the deployment team
- Disable or avoid code paths in cosmos3_runner.py that call AutoTokenizer.from_pretrained on externally supplied paths until a patch is published
- Apply mandatory access controls (SELinux, AppArmor) to confine the LightX2V process from executing arbitrary interpreters or writing to tokenizer cache paths
# Configuration example: restrict tokenizer directory permissions
chown -R root:lightx2v /opt/lightx2v/tokenizers
chmod -R 750 /opt/lightx2v/tokenizers
find /opt/lightx2v/tokenizers -name 'tokenizer_config.json' \
-exec grep -l 'auto_map' {} \;
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

