CVE-2026-122014

NPC-Worldwide npcpy sft.py load_sft_model code injection

Published Nov 4, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability has been found in NPC-Worldwide npcpy up to 2.1.27. This affects the function load_sft_model of the file npcpy/ft/sft.py. The manipulation of the argument base_model_name_or_path leads to code injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.

Analysis

AI-generated

Technical impact

The vulnerability resides in the load_sft_model function of NPC-Worldwide npcpy, where the argument base_model_name_or_path is unsanitized and can be crafted to inject executable code. This allows an attacker to run arbitrary code on the host system when the function is invoked, thereby compromising confidentiality, integrity, and availability. The weakness is classified as CWE-74 (Command Injection) and CWE-94 (Code Injection).

Affected Systems

NPC-Worldwide is the vendor; the product affected is npcpy, with all releases up to version 2.1.27 vulnerable. Users deploying any of these releases in a context that allows remote invocation of load_sft_model are at risk.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score is not available. The vulnerability is not currently listed in CISA’s KEV catalog, but a public exploit is disclosed and it can be triggered remotely. Because the attacker can control the code injection pathway, exploitation could occur if the affected function is exposed to untrusted input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a version of npcpy that removes the injection vulnerability (e.g., 2.1.28 or later).
  • Implement strict server‑side validation or sanitization for the base_model_name_or_path parameter, rejecting any non‑alphanumeric or suspicious input.
  • Restrict remote access to the load_sft_model API so that only trusted, authenticated users or internal services can invoke it; disable the function from public endpoints when possible.

Generated by OpenCVE AI on November 4, 2026 at 22:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability has been found in NPC-Worldwide npcpy up to 2.1.27. This affects the function load_sft_model of the file npcpy/ft/sft.py. The manipulation of the argument base_model_name_or_path leads to code injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
Title NPC-Worldwide npcpy sft.py load_sft_model code injection
First Time appeared Npc-worldwide
Npc-worldwide npcpy
Weaknesses CWE-74
CWE-94
CPEs cpe:2.3:a:npc-worldwide:npcpy:*:*:*:*:*:*:*:*
Vendors & Products Npc-worldwide
Npc-worldwide npcpy
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 10, 2026, 3:33 PM
Reserved
Nov 4, 2026, 2:31 PM
Status
Deferred
Published
Nov 4, 2026, 9:18 PM
Modified
Nov 10, 2026, 4:17 PM
Severity
Important
Public date
Nov 4, 2026, 9:00 PM