CVE-2026-116073

Leon before commit 50df142 Path Traversal via /download model Command

Published Oct 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Leon implements a /download model command that extracts a file name from a supplied URL to write a file under its models directory. The current implementation fails to correctly reject percent‑encoded directory separators, allowing an attacker to include encoded '../' sequences and cause the server to write an attacker‑controlled file outside the intended directory. This flaw permits the creation or modification of arbitrary files on the underlying host, which may lead to further compromise if the written content is executable or misconfigures the system.

Affected Systems

Versions of the leon-ai:leon product released before commit 50df142 are affected. No specific patch version is listed, indicating that any release built from the repository state that contains commit 50df142 or later has the vulnerability removed. The vulnerability is present across the entire range of products that include the legacy download‑model command.

Risk and Exploitability

The CVSS score of 6.9 classifies the weakness as high severity with potential for significant impact. Exploitation requires the victim to run the /download model command with a crafted URL, meaning a social engineering or phishing vector is the likely attack path. Since EPSS is not available and the flaw is not listed as a known exploited vulnerability by CISA, the risk remains primarily theoretical but not negligible for environments where users may unknowingly execute the command against untrusted URLs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Leon to a version built from commit 50df142 or later, as the fix removes the path traversal logic.
  • If upgrading is not possible, restrict access to the /download model command to an authenticated, trusted administrative set of users only, and require explicit confirmation before accepting an arbitrary URL.
  • Implement input validation for the command: resolve percent‑encoded paths, normalize the path, and reject any that resolve outside the designated models directory.

Generated by OpenCVE AI on October 25, 2026 at 14:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Leon before commit 50df142 Path Traversal via /download model Command
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 6.9, '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'}

Subscriptions

No data.

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 3:51 PM
Reserved
Oct 25, 2026, 1:57 AM
Status
Deferred
Published
Oct 25, 2026, 12:16 PM
Modified
Nov 5, 2026, 4:17 PM