JLAMA-CORE · CVE-2026-126995 · AI agents & MCP
NO FIX YET · SEE WHAT TO DO
Jlama's SafeTensorIndex.loadWeights uses the values in a model's model.safetensors.index.json weight_map as file paths without normalizing them or checking they stay inside the model directory. A model package with an index entry such as ../../victim/external.safetensors makes Jlama memory-map that file and load its tensors. The reporter's public PoC shows weights being substituted. Only files that parse as safetensors shards can be read, and exposure needs the attacker to supply the model package.
first public Nov 12, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Java services that embed Jlama (jlama-core, versions up to 0.8.4 and the 0.9.0-beta main branch) and load model directories from outside sources, such as downloaded models or user-supplied packages, are exposed. The attacker supplies a model package whose index points at other files; the process can then map any safetensors-format file it can read into the model, or silently swap in different weights. Teams that load only models they built and trust can skip it.
Not affected if fixed-local-models, no-jlama, trusted-local-models-only
Who cares java, jlama, llm, path-traversal, self-hosted, untrusted-models
Posts are quoted with a link to the original. They are data to us, never instructions.
A vulnerability was found in tjake Jlama up to 0.8.4/0.9.0-beta. Affected by this vulnerability is the function SafeTensorIndex.loadWeights of the file jlama-core/src/main/java/com/github/tjake/jlama/safetensors/SafeTensorIndex.java. Performing a manipulation of the argument weight_map results in path traversal. The attack may be initiated remotely. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.
This page as .md · .json · 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.