Submit #1064084: sgl-project SpecForge 0.2.0 (commit fcc0c367) Path Traversalinfo

Titelsgl-project SpecForge 0.2.0 (commit fcc0c367) Path Traversal
BeschreibungA vulnerability was found in SpecForge 0.2.0 (git commit fcc0c367) and classified as high 8.1. Affected is the draft embedding loader Eagle3DraftModel.load_embedding in specforge/modeling/draft/base.py (lines 134-186). The manipulation of the argument weight_map in a checkpoint *.index.json leads to path traversal. It is possible to launch the attack remotely; user interaction is required because a victim must run training or export against an attacker-supplied model package. Technical Details - Affected file/function: specforge/modeling/draft/base.py / Eagle3DraftModel.load_embedding; same flaw in specforge/export/to_hf.py / _load_embedding_tensor; refactored but still present on main as of 2026-10-22 in specforge/modeling/target/checkpoint.py / load_checkpoint_tensors (line 205) - Vulnerable parameter: weight_map shard value for key model.embed_tokens.weight in *.index.json inside the target-model directory - Attack vector: Network - Privileges required: None - Trigger condition: the victim points SpecForge (specforge.export.to_hf --embedding-source, or training with load_target_embedding enabled) at a model package whose index maps the embedding key to a relative ../ escape or an absolute path; the loader joins the value with the model directory without a containment check, opens it with safetensors.safe_open, and copies the out-of-package tensor into the draft model, which then lands in the exported artifact via save_pretrained. Verified end to end on the real export CLI with a package that contains no weight file at all. Impact - Confidentiality: High (tensor data from files outside the package boundary, such as licensed target weights stored beside the working directory, is copied into the exported draft and thereby exfiltrated when the artifact is shared or served) - Integrity: High (attacker-chosen tensor values become the frozen embedding of the produced draft model, silently poisoning the exported artifact) - Availability: None (the run completes normally) CVSS v3.1 Score: 8.1 (High) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N Timeline - Discovered: 2026-10-22 - Vendor notified: [pending] - Patch released: [pending] - Public disclosure: [pending] Countermeasure Reject weight_map values containing path separators or ".." segments, or require os.path.realpath of the joined path to stay inside the realpath of the model directory; apply the check in load_embedding, _load_embedding_tensor, and load_checkpoint_tensors.
Quelle⚠️ https://github.com/sgl-project/SpecForge/issues/1041
Benutzer
 Dem000 (UID 98389)
Einreichung29.10.2026 09:00 (vor 28 Tagen)
Moderieren26.11.2026 10:06 (28 days later)
StatusAkzeptiert
VulDB Eintrag444245 [sgl-project SpecForge 0.2.0 Draft Embedding Loader base.py Eagle3DraftModel.load_embedding Directory Traversal]
Punkte20

Interested in the pricing of exploits?

See the underground prices here!