pypi package report

Is ms-swift safe?

4 known vulnerabilities, worst severity MODERATE.

// reach

44 direct dependencies

19 carry known advisories, worst CRITICAL

0 packages depend on it

an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai models

    4 published models carry an advisory from this package

    0 pin a version the advisory is confirmed against; the rest declare it without a version.

    tencent/Hy3MEDIUMnot pinned
    tencent/Hy3-FP8MEDIUMnot pinned

    4 published models

    0 declared · 4 observed · 0 inferred

    ModelEvidence
    tencent/Hy3observed
    tencent/Hy3-FP8observed
    Create a free accountto see all 2 models and per-model risk

    4 published AI models are associated with this package: 0 name it in a requirements or pyproject file, 4 load it or import it directly, and 0 are inferred from the runtime stack their declared library pulls in. Only 0 state a version requirement, so this is not a count of affected models.


    cvss
    5.0
    medium

    severity band, no base score published

    epss
    1.2%
    medium

    chance of exploitation in 30 days, 79th percentile of all CVEs

    xyz score
    not scored

    CyberXYZ composite out of 10

    fig. 01 — GHSA-7c78-rm87-5673, the advisory selected below

    // 4 advisories

    GHSA-7c78-rm87-5673

    MODERATEGitHub ratingCVE-2025-41419

    I. Detailed Description:

    This includes scenarios, screenshots, vulnerability reproduction methods. For account-related vulnerabilities, please provide test accounts. If the reproduction process is complex, you may record a video, upload it to Taopan, and attach the link.

    • Install ms-swift
       pip install ms-swift -U
    • Start web-ui
       swift web-ui --lang en
    • After startup, access through browser at http://localhost:7860/ to see the launched fine-tuning framework program
    • Fill in necessary parameters

    In the LLM Training interface, fill in required parameters including Model id, Dataset Code. The --output_dir can be filled arbitrarily as it will be modified later through packet capture

    • Click Begin to start training. Capture packets and modify the parameter corresponding to --output_dir

    You can see the concatenated command being executed in the terminal where web-ui was started

    • Wait for the program to run (testing shows it requires at least 5 minutes), and you can observe the effect of command execution creating files

    II. Vulnerability Proof (Write POC here):

    /tmp/xxx'; touch /tmp/inject_success_1; #

    III. Fix Solution:

    • The swift.ui.llm_train.llm_train.LLMTrain#train() method should not directly concatenate parameters with commands after receiving commands from the frontend
    • The swift.ui.llm_train.llm_train.LLMTrain#train_local() method should not use os.system for execution, but should be changed to subprocess.run([cmd, arg1, arg2...]) format
    // author
    • Discovered by: TencentAISec
    • Contact: [security@tencent.com](mailto:security@tencent.com)

    Checked 2026-11-08 at 23:47 UTC. The most recent advisory here was published 2026-06-04. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.