Description
Leon before commit 50df142 contains a path traversal vulnerability in getModelFileNameFromURL() that allows attackers to write files outside the models directory via percent-encoded separators. Attackers can trick a user into running '/download model' with a crafted URL containing encoded '../' sequences to write attacker-controlled content to arbitrary paths writable by Leon.
Metrics
CVSS 3.1 6.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| leon-ai | leon | >= a3afdef81c8dd085b922f5a4e6b68bb9b9d802e4, < 50df142a89a0859e5b7283d87afdab7b01e712a2 |
References
- https://github.com/leon-ai/leon
- https://github.com/leon-ai/leon/blob/21baf11714f618a9367f25882e59e856d3308037/server/src/built-in-command/commands/download-command/download-command.ts#L21-L28
- https://github.com/leon-ai/leon/commit/50df142a89a0859e5b7283d87afdab7b01e712a2
- https://github.com/leon-ai/leon/issues/593
- https://github.com/leon-ai/leon/pull/594
- https://www.vulncheck.com/advisories/leon-before-commit-50df142-path-traversal-via-download-model-command
Timeline
- Published
- Oct 25, 2026
- Last modified
- Nov 5, 2026
- NVD status
- Deferred