Close Menu
  • Home
  • News
  • Cyber Security
  • Internet of Things
  • Tips and Advice

Subscribe to Updates

Get the latest creative news from FooBar about art, design and business.

What's Hot

Google Links Redact Extortion Group to BlackFile Rebrand

August 7, 2026

Hugging Face Diffusers Flaws Could Let Model Repositories Execute Arbitrary Code

August 7, 2026

Canadian Hacker Pleads Guilty Over Snowflake Extortion Campaign

August 7, 2026
Facebook X (Twitter) Instagram
Friday, August 7
Facebook X (Twitter) Instagram Pinterest Vimeo
Cyberwire Daily
  • Home
  • News
  • Cyber Security
  • Internet of Things
  • Tips and Advice
Cyberwire Daily
Home»News»Hugging Face Diffusers Flaws Could Let Model Repositories Execute Arbitrary Code
News

Hugging Face Diffusers Flaws Could Let Model Repositories Execute Arbitrary Code

Team-CWDBy Team-CWDAugust 7, 2026No Comments4 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email


Three high-severity security flaws have been disclosed in Hugging Face’s Diffusers library that could allow crafted model repositories to stealthily execute arbitrary code on machines that load it, opening the artificial intelligence (AI) supply chain to security risk.

“These vulnerabilities are bypassing trust_remote_code, the safeguard designed to stop unreviewed code from running in the custom pipelines loading process,” Zafran Labs researchers Gal Zaban and Ido Shani said in an analysis published last week.

The shortcomings have been collectively named FaceHugger.

With Hugging Face becoming the “GitHub of the AI era” and its libraries and repositories prevalent in enterprise environments, vulnerabilities in libraries like Diffusers can grant attackers extensive access owing to how the library is embedded into production pipelines, CI/CD systems, and container images.

Diffusers is a Python package that serves as a library of state-of-the-art (SOTA) pretrained diffusion models for generating videos, images, and audio. According to statistics shared on pepy.tech, the package has been downloaded more than 8.1 million times in July 2026.

One of the key capabilities of the library is to locally load a model from a Hugging Face hub repository via the DiffusionPipeline API, which, in turn, makes use of a configuration file to initialize specific pipeline and component classes, along with custom pipeline code.

The “trust_remote_code” parameter in Diffusers is a security safeguard that controls whether custom Python code hosted inside a model repository is allowed to execute during “from_pretrained()” loading. Setting it to “True” permits custom code execution, while “False” or omitting it blocks unverified code from running.

“The root cause of all different RCE variants […] is that the trust check lives entirely in the first phase,” Zafran explained. “Therefore, any method that makes the loader see custom code that the gate did not, allows bypassing the trust_remote_code mechanism.”

Each variant has been traced back to a case of Time-of-Check to Time-of-Use (TOCTOU), with the model download designed as two sequential, non-atomic HTTP requests instead of one a “single atomic operation” and the “trust_remote_code” security gate configured to run only against the first.

The vulnerabilities are listed below –

  • CVE-2026-44827 (CVSS score: 8.8) – A code injection vulnerability that allows arbitrary code to be loaded through the custom_pipeline flow from a Hub repository by means of a crafted pipeline with the name “None.py” despite passing trust_remote_code=False (or omitting it, which is the default).
  • CVE-2026-45804 (CVSS score: 7.5) – A race condition vulnerability that allows arbitrary code to be introduced to a repository by modifying the configuration between the hf_hub_download and snapshot_download HTTP calls to the Hub, leading to code execution.
  • CVE-2026-44513 (CVSS score: 8.8) – A code injection vulnerability that allows arbitrary code to be loaded through the custom_pipeline flow from a Hub repository despite passing trust_remote_code=False (or omitting it).

Following responsible disclosure, the vulnerabilities were addressed in Diffusers version 0.38.0, released in early May 2026. Any user who invokes “DiffusionPipeline.from_pretrained” with custom pipelines is impacted.

“The underlying problem is that artifacts pulled from AI repositories are frequently treated as passive data, when configuration files, loaders, and custom pipeline code can quietly cross into executable code and turn a routine model load into an initial-access vector,” the researchers added.

If immediate patching is not an option, the project maintainers have recommended the following workarounds –

  • Only call from_pretrained with pretrained_model_name_or_path, custom_pipeline, and local snapshot directories from fully trusted sources that have been audited.
  • Do not pass custom_pipeline= pointing at a Hub repository different from the primary pretrained_model_name_or_path before reading its pipeline.py.
  • Before calling from_pretrained on a local snapshot, inspect the snapshot for unexpected *.py files, especially under component subdirectories (unet/, scheduler/, etc.) and at the snapshot root.

“These vulnerabilities underscore the critical need to treat AI model repositories as untrusted code, particularly as enterprise reliance on platforms like Hugging Face continues to grow,” Zafran said. “A routine model download can easily become a vector for arbitrary code execution if security boundaries like trust_remote_code are bypassed.”



Source

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleCanadian Hacker Pleads Guilty Over Snowflake Extortion Campaign
Next Article Google Links Redact Extortion Group to BlackFile Rebrand
Team-CWD
  • Website

Related Posts

News

Google Links Redact Extortion Group to BlackFile Rebrand

August 7, 2026
News

Canadian Hacker Pleads Guilty Over Snowflake Extortion Campaign

August 7, 2026
News

Hackers Poison Adform Script to Swap Crypto Wallet Addresses Across Customer Sites

August 7, 2026
Add A Comment
Leave A Reply Cancel Reply

Latest News

North Korean Hackers Turn JSON Services into Covert Malware Delivery Channels

November 24, 202523 Views

macOS Stealer Campaign Uses “Cracked” App Lures to Bypass Apple Securi

September 7, 202517 Views

North Korean Hackers Target Crypto Firms with ClickFix and Zoom Lures

April 29, 202610 Views

Why SOC Burnout Can Be Avoided: Practical Steps

November 14, 20259 Views

BeyondTrust Patches Critical Auth Bypass Flaws in Remote Support and PRA

July 11, 20268 Views
Stay In Touch
  • Facebook
  • YouTube
  • TikTok
  • WhatsApp
  • Twitter
  • Instagram
Most Popular

North Korean Hackers Turn JSON Services into Covert Malware Delivery Channels

November 24, 202523 Views

macOS Stealer Campaign Uses “Cracked” App Lures to Bypass Apple Securi

September 7, 202517 Views

North Korean Hackers Target Crypto Firms with ClickFix and Zoom Lures

April 29, 202610 Views
Our Picks

How to tell if a voice call is AI or not

February 23, 2026

Why you should never pay to get paid

September 15, 2025

The hidden risks of browser extensions – and how to avoid them

September 13, 2025

Subscribe to Updates

Get the latest news from cyberwiredaily.com

Facebook X (Twitter) Instagram Pinterest
  • Home
  • Contact
  • Privacy Policy
  • Terms of Use
  • California Consumer Privacy Act (CCPA)
© 2026 All rights reserved.

Type above and press Enter to search. Press Esc to cancel.