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.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| leon-ai | leon | a3afdef81c8dd085b922f5a4e6b68bb9b9d802e4 to <50df142a89a0859e5b7283d87afdab7b01e712a2 [affected] |
References
- https://github.com/leon-ai/leon/issues/593 (issue-tracking)
- https://github.com/leon-ai/leon (product)
- https://github.com/leon-ai/leon/blob/21baf11714f618a9367f25882e59e856d3308037/server/src/built-in-command/commands/download-command/download-command.ts#L21-L28 (technical-description)
- https://github.com/leon-ai/leon/pull/594 (patch issue-tracking)
- https://github.com/leon-ai/leon/commit/50df142a89a0859e5b7283d87afdab7b01e712a2 (patch)
- https://www.vulncheck.com/advisories/leon-before-commit-50df142-path-traversal-via-download-model-command (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 26 Oct 2026 07:06 UTC.