---
id: CVE-2026-112051
title: >-
  Xinference through 4.0.1 Path Traversal via model_name in Custom Model
  Registration
summary: >-
  Xinference through 4.0.1 contains a path traversal vulnerability on Windows
  that allows unauthenticated attackers to write and delete arbitrary .json
  files via backslash sequences in model_name. Attackers can register a
  persisted custom …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L'
cvssSource: cna
cwe:
  - CWE-22
vendor: xorbitsai
product: inference
affected:
  - inference <= 4.0.1
published: '2026-10-18'
updated: '2026-10-18'
sourceUpdated: '2026-10-18T12:19:43.049Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112051'
references:
  - url: 'https://github.com/xorbitsai/inference/issues/5702'
  - url: >-
      https://github.com/xorbitsai/inference/commit/beddc97ac211f8414597fe8479493be0603f7c84
  - url: >-
      https://github.com/xorbitsai/inference/blob/v4.0.1/xinference/model/utils.py#L1175-L1182
  - url: >-
      https://github.com/xorbitsai/inference/blob/v4.0.1/xinference/model/cache_manager.py#L117-L134
  - url: >-
      https://www.vulncheck.com/advisories/xinference-through-4.0.1-path-traversal-via-model-name-in-custom-model-registration
    label: >-
      VulnCheck Advisory: Xinference through 4.0.1 Path Traversal via model_name
      in Custom Model Registration
tags:
  - cve.org
ingestedAt: '2026-10-18T12:41:54.061Z'
---

## Overview

Xinference through 4.0.1 contains a path traversal vulnerability on Windows that allows unauthenticated attackers to write and delete arbitrary .json files via backslash sequences in model_name. Attackers can register a persisted custom model through POST /v1/model_registrations/{model_type} with names like ..\..\evil to overwrite configuration or data files writable by the Xinference process.

## Affected

- `inference <= 4.0.1`

## Remediation

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