CVE-2023-6730
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-6730 is a deserialization of untrusted data vulnerability affecting the GitHub repository huggingface/transformers prior to version 4.36. The vulnerability was discovered and disclosed in December 2023, with the initial CVE record being created on December 12, 2023 (CVE Details).

Technical details

The vulnerability is classified as a deserialization of untrusted data issue (CWE-502). It received a CVSS v3.1 base score of 8.8 HIGH from NVD (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) and a CVSS 3.0 score of 9.0 CRITICAL from huntr.dev (Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H) (NVD).

Impact

The vulnerability allows for Remote Code Execution (RCE) in Hugging Face Transformers via RagRetriever.from_pretrained() function. This could potentially lead to arbitrary code execution if exploited, affecting the confidentiality, integrity, and availability of the system (SecurityWeek).

Mitigation and workarounds

The vulnerability has been patched in version 4.36 of the huggingface/transformers repository. For users who need to use pickle.load() functionality, the environment variable TRUST_REMOTE_CODE must be set to True, though this should only be done after verifying the safety of the pickle data (GitHub Patch).

Community reactions

The vulnerability was discovered as part of a broader security audit that revealed eight vulnerabilities in the AI development supply chain. This discovery highlights the growing importance of security in AI/ML development pipelines and the need for specialized security measures in AI applications (SecurityWeek).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management