---
id: CVE-2025-11233
title: >-
  Starting from Rust 1.87.0 and before Rust 1.89.0, the tier 3 Cygwin target
  (`x86_64-pc-cygwin`) didn't correctly handle path separators, causing the
  standard library's Path API to ignore path components separated by backslashes
summary: >-
  Starting from Rust 1.87.0 and before Rust 1.89.0, the tier 3 Cygwin target
  (`x86_64-pc-cygwin`) didn't correctly handle path separators, causing the
  standard library's Path API to ignore path components separated by
  backslashes. Due to t…
severity: none
cwe:
  - CWE-22
published: '2025-10-01'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T09:10:00.213'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-11233'
references:
  - url: 'https://github.com/rust-lang/rust/pull/141864'
    label: 986d4109-89ea-491f-99fd-a8e4803919bd
  - url: 'https://groups.google.com/g/rustlang-security-announcements/c/oT9zCvLLYkw'
    label: 986d4109-89ea-491f-99fd-a8e4803919bd
tags:
  - nvd
epss: 0.00517
epssPercentile: 0.42136
ingestedAt: '2026-10-09T09:31:01.001Z'
---

## Overview

Starting from Rust 1.87.0 and before Rust 1.89.0, the tier 3 Cygwin target (`x86_64-pc-cygwin`) didn't correctly handle path separators, causing the standard library's Path API to ignore path components separated by backslashes. Due to this, programs compiled for Cygwin that validate paths could misbehave, potentially allowing path traversal attacks or malicious filesystem operations.




Rust 1.89.0 fixes the issue by handling both Win32 and Unix style paths in the standard library for the Cygwin target.



While we assess the severity of this vulnerability as "medium", please note that the tier 3 Cygwin compilation target is only available when building it from source: no pre-built binaries are distributed by the Rust project, and it cannot be installed through Rustup. Unless you manually compiled the `x86_64-pc-cygwin` target you are not affected by this vulnerability. Users of the tier 1 MinGW target (`x86_64-pc-windows-gnu`) are also explicitly not affected.

## Remediation

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