github.com/huggingface/transformers
Submitted 8/4/2026, 10:25:52 AM · Status: ok
Risk grade
F
100 / 100
Findings
771
0 critical50 high678 medium24 low19 info0 on CISA KEV0ATT&CK
Showing 771 of 771 findings
Findings
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/reformer/convert_reformer_trax_checkpoint_to_pytorch.py:201
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/rag/retrieval_rag.py:158
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/rag/retrieval_rag.py:142
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/perceiver/convert_perceiver_haiku_to_pytorch.py:281
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:276
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/olmo3/convert_olmo3_weights_to_hf.py:211
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/nanochat/convert_nanochat_checkpoints.py:237
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/maskformer/convert_maskformer_swin_to_pytorch.py:251
- pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)pickle.load/loads on non-constant data executes arbitrary code on deserialize. Use JSON or a signed/whitelisted format for untrusted input. (Apache-2.0.)semgrepsrc/transformers/models/maskformer/convert_maskformer_resnet_to_pytorch.py:282
- subprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list ansubprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list and shell=False. (First-party socbox; Apache-2.0.)semgreputils/get_modified_files.py:28
- subprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list ansubprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list and shell=False. (First-party socbox; Apache-2.0.)semgreputils/check_modular_conversion.py:120
- subprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list ansubprocess invoked through the shell (shell=True) or with a command string that is interpolated/concatenated/.split() instead of a fixed argv list — command injection risk. Pass a literal argv list and shell=False. (First-party socbox; Apache-2.0.)semgreputils/add_dates.py:102
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-intel-cpu/Dockerfile:8
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-intel-cpu/Dockerfile:13
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-doc-builder/Dockerfile:12
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/quality.dockerfile:5
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/quality.dockerfile:9
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/exotic-models.dockerfile:5
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/consistency.dockerfile:5
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/custom-tokenizers.dockerfile:5
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-pytorch-xpu/Dockerfile:45
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-pytorch-xpu/Dockerfile:10
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-pytorch-xpu/Dockerfile:20
- 'apt-get' missing '--no-install-recommends''apt-get' install should use '--no-install-recommends' to minimize image size.trivydocker/transformers-pytorch-tpu/Dockerfile:33
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-doc-builder/Dockerfile:4
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-all-latest-gpu/Dockerfile:21
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-quantization-latest-gpu/Dockerfile:21
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-pytorch-gpu/Dockerfile:6
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile:10
- 'RUN <package-manager> update' instruction aloneThe instruction 'RUN <package-manager> update' should always be followed by '<package-manager> install' in the same RUN statement.trivydocker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile:11
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-intel-cpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-doc-builder/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-all-latest-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/torch-light.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/quality.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/pipeline-torch.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/exotic-models.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/consistency.dockerfile:3
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/examples-torch.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-quantization-latest-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-xpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-tpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-deepspeed-nightly-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-deepspeed-latest-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/custom-tokenizers.dockerfile:4
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-deepspeed-amd-gpu/Dockerfile:0
- Image user should not be 'root'Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.trivydocker/transformers-pytorch-amd-gpu/Dockerfile:0
- WORKDIR path not absoluteFor clarity and reliability, you should always use absolute paths for your WORKDIR.trivydocker/custom-tokenizers.dockerfile:12
This report is public.