{
  "id": "CVE-2025-46567",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-46567",
  "published_at": "2025-05-01T17:20:41.02Z",
  "title": "LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py",
  "vendor": "hiyouga",
  "product": "LLaMA-Factory",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in the `llamafy_baichuan2.py` script of the LLaMA-Factory project. The script performs insecure deserialization using `torch.load()` on user-supplied `.bin` files from an input directory. An attacker can exploit this behavior by crafting a malicious `.bin` file that executes arbitrary commands during deserialization. This issue has been patched in version 1.0.0.",
  "cwe": "CWE-502",
  "cpes": [
    "cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.1,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "hiyouga",
        "product": "LLaMA-Factory",
        "ranges": [
          "\u003c 1.0.0"
        ],
        "fixed_in": [
          "1.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade LLaMA-Factory to 1.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpv"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/hiyouga/LLaMA-Factory/commit/2989d39239d2f46e584c1e1180ba46b9768afb2a"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
