{"id":4319,"date":"2026-09-04T18:46:24","date_gmt":"2026-09-04T10:46:24","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-9856"},"modified":"2026-09-04T18:46:24","modified_gmt":"2026-09-04T10:46:24","slug":"cve-2026-9856","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-9856","title":{"rendered":"CVE-2026-9856 [HIGH] &#8211; A vulnerability in huggingface\/transformers versions"},"content":{"rendered":"<p>A vulnerability in huggingface\/transformers versions &lt;=5.8.0.dev0 allows an attacker to perform arbitrary file writes via path traversal. The issue resides in the `save_pretrained()` methods of `PreTrainedTokenizerBase` and `ProcessorMixin`, where keys from the `chat_template` dictionary are used directly as filenames without proper validation. An attacker can exploit this by publishing a malicious Hugging Face Hub repository with a crafted `tokenizer_config.json` file. When a victim downloads and saves the tokenizer or processor, the attacker-controlled keys can escape the intended save directory, enabling arbitrary file writes with attacker-controlled content. This vulnerability affects multiple processors inheriting from `ProcessorMixin`, including Idefics, Florence, Gemma, Phi, and Qwen-VL.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A vulnerability in huggingface\/transformers versions<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-4319","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/4319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}