Database/AI/ML frameworks & serving
langchaingo: jinja2 prompt templates allow server-side template injection and file read
Impact
langchaingo parses prompts with jinja2 syntax through gonja 1.5.3, and gonja honours the include and extends tags. Anything that reaches the prompt template - user input, a retrieved document, a tool result - can therefore read files off the host, with /etc/passwd given as the demonstrated example. On a GPU fleet the process doing the reading is typically an agent or RAG service running next to the model with mounted secrets, service-account tokens and dataset paths, so a file-read primitive in that process is credential disclosure rather than a curiosity. The advisory rates it as full compromise; the described mechanism is file inclusion in the template engine.
Who can reach it
Anyone who can influence text that ends up in a langchaingo prompt template. For an exposed chat or agent endpoint that means an unauthenticated remote user; internally it includes any tenant whose documents or tool output are templated.
What to do
Update langchaingo to a release containing PR #1348 and rebuild and redeploy the services that embed it - this is a Go library, so there is no package to patch in place on the node. Until then, stop passing untrusted content through jinja2-formatted prompts and prefer the non-jinja template path. Review the service account and mounted secrets of any affected agent for exposure.
References
Related entries
- MLflow (jobs API): `/ajax-api/3.0/jobs/*` unauthenticated even with basic-auth enabledCVE-2026-0545 · MLflow (jobs API)Critical
- Mercury: tokenless deployments let anonymous clients start kernels and execute arbitrary PythonCVE-2026-111058 · Mercury (mljar) notebook-sharing server, /api/kernels and kernel websocketCritical
- Keras (Lambda layer): Arbitrary code execution via Lambda-layer deserialization in 3.14.0CVE-2026-12481 · Keras (Lambda layer)Critical
- SGLang (`/load_lora_adapter_from_tensors`): Unauthenticated RCE bypassing `SafeUnpickler`'s incomplete denylistCVE-2026-15969 · SGLang (`/load_lora_adapter_from_tensors`)Critical
- vLLM (image error echo): Error path returns sensitive content on invalid image inputCVE-2026-22778 · vLLM (image error echo)Critical
- Milvus (port 9091): Management port 9091 exposed by default enabling compromiseCVE-2026-26190 · Milvus (port 9091)Critical
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.