Remote Code execution risk

#24
by srivishnuceg - opened

Could you please confirm whether this carries risk of RCE?

The "remote code" that will be executed are these two files:

Beyond that, it's just code from e.g. transformers/sentence-transformers.

As far as I can tell, these two files are clean. I've used them myself, as well.

  • Tom Aarsen

Great @tomaarsen , thanks!

The "remote code" that will be executed are these two files:

Beyond that, it's just code from e.g. transformers/sentence-transformers.

As far as I can tell, these two files are clean. I've used them myself, as well.

  • Tom Aarsen

Hey Tom, in which path I should put the two files that I can totally use the model locally? I tried to put them in the same path as the safetensors, it didn't work when I cut off the internet.

Hmm, they should indeed be in the same directory as the safetensors file. Perhaps you can set the HF_HUB_OFFLINE argument as described here: https://huggingface.co/docs/transformers/main/en/installation#offline_mode

  • Tom Aarsen

Sign up or log in to comment