Skip to content

add advisory hf-hub - #3607

Open
muhammad-hassnain wants to merge 1 commit into
rustsec:mainfrom
muhammad-hassnain:add-advisory-hf-hub
Open

muhammad-hassnain wants to merge 1 commit into
rustsec:mainfrom
muhammad-hassnain:add-advisory-hf-hub

Conversation

@muhammad-hassnain

@muhammad-hassnain muhammad-hassnain commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • hf-hub ( 9,772,696 recent downloads per crates.io)

Links to upstream issue(s) or PR(s)

huggingface/hf-hub#241

Severity

A file name taken from a repository or bucket listing (or the ETag / X-Repo-Commit response headers) is joined onto the download directory with no .. / absolute / UNC check, so a crafted name is written outside that directory (path traversal, CWE-22). On Windows a malicious repository on the genuine Hub can escape the destination, including into the default cache (the case Hugging Face fixed in the Python client as CVE-2026-15717); on any platform it is reachable through a malicious or mirror endpoint. This allows overwriting or planting files the process can write, which can lead to code execution. Affected from 1.0.0-rc.0 onward; no fixed release (CVSS 7.5).

Checklist

  • Advisory filename(s) starts with RUSTSEC-0000-0000 as the ID
  • date field is set to the public disclosure date
  • Contains a concise and descriptive title after advisory metadata
  • Asked maintainer(s) if publishing an advisory is appropriate
    I emailed them at security@huggingface.co on Oct 30th, and after a week of no response I raised an issue on their GitHub and its been almost 2 weeks and there has been no movement there.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant