Summary
CVE-2026-112051 is a path traversal vulnerability (CWE-22) in Xinference through version 4.0.1 when running on Windows. Unauthenticated remote attackers can write and delete arbitrary .json files by supplying backslash sequences in the model_name parameter. The CVSS v4.0 base score is 8.3 (High).
Technical details
- Root cause: Improper limitation of a pathname to a restricted directory. Backslash sequences in
model_name(custom model registration) are not neutralized on Windows. - Trigger conditions: The Xinference instance runs on Windows and is reachable by the attacker. No authentication or user interaction is required.
- Attack vector: Network.
- Impact: Arbitrary writing and deletion of
.jsonfiles, affecting integrity and, to a lesser degree, availability.
Affected software
- Xinference (PyPI package
xinference) versions 0 through 4.0.1, on Windows
Severity
- CVSS v4.0: 8.3 (High) –
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N - CVSS v3.1: 6.5 (Medium) –
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
Mitigation and recommended actions
- Immediate: Upgrade to a Xinference release that includes the upstream fix commit (beddc97) once available. The CVE record does not name a specific fixed version, so check the upstream project for the release containing it.
- If you cannot patch: Restrict network access to the Xinference API to trusted hosts only, and place it behind an authenticating reverse proxy or firewall. Consider running it on a non-Windows host.

