---
id: CVE-2026-116073
title: Leon before commit 50df142 Path Traversal via /download model Command
summary: >-
  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 '/d…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-22
vendor: leon-ai
product: leon
affected:
  - >-
    leon >= a3afdef81c8dd085b922f5a4e6b68bb9b9d802e4 <
    50df142a89a0859e5b7283d87afdab7b01e712a2
published: '2026-10-25'
updated: '2026-10-25'
sourceUpdated: '2026-10-25T11:51:00.624Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116073'
references:
  - url: 'https://github.com/leon-ai/leon/issues/593'
    label: 'GitHub Issue #593'
  - url: 'https://github.com/leon-ai/leon'
  - url: >-
      https://github.com/leon-ai/leon/blob/21baf11714f618a9367f25882e59e856d3308037/server/src/built-in-command/commands/download-command/download-command.ts#L21-L28
  - url: 'https://github.com/leon-ai/leon/pull/594'
  - url: >-
      https://github.com/leon-ai/leon/commit/50df142a89a0859e5b7283d87afdab7b01e712a2
  - url: >-
      https://www.vulncheck.com/advisories/leon-before-commit-50df142-path-traversal-via-download-model-command
    label: >-
      VulnCheck Advisory: Leon before commit 50df142 Path Traversal via
      /download model Command
tags:
  - cve.org
ingestedAt: '2026-10-25T22:08:29.957Z'
---

## Overview

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.

## Affected

- `leon >= a3afdef81c8dd085b922f5a4e6b68bb9b9d802e4 < 50df142a89a0859e5b7283d87afdab7b01e712a2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
