Tag

Cve 2026 139989

All articles tagged with #cve 2026 139989

Languagemodels 1.0.1 Patches High-Severity Jinja2 Injection Flaw
security4 days ago

Languagemodels 1.0.1 Patches High-Severity Jinja2 Injection Flaw

A high-severity remote code execution vulnerability in the Python library languagemodels has been patched in version 1.0.1. The flaw, identified as CVE-2026-139989, allowed attackers to execute arbitrary code by crafting malicious chat templates in Hugging Face model configurations. The vulnerability stems from the use of an unsandboxed Jinja2 environment in the config.use_hf_model function, which processes model metadata before downloading weights. Although the attack requires user interaction to select a specific model, it demands no special privileges and executes with the victim's process rights. The issue carries a CVSS 3.1 score of 7.8 and a CVSS 4.0 score of 8.5, reflecting high impacts on confidentiality, integrity, and availability. The fix replaces the standard Jinja2 environment with a sandboxed immutable version, mirroring security practices in the Hugging Face transformers library.