CVE-2025-11233
Beschrijving NL
Vanaf Rust 1.87.0 en vóór Rust 1.89.0 heeft het Cygwin-doel van niveau 3 (`x86_64-pc-cygwin`) padscheiders niet correct afgehandeld, waardoor de Path API van de standaardbibliotheek padcomponenten negeert die zijn gescheiden door backslashes. Hierdoor kunnen programma's die voor Cygwin zijn gecompileerd en die paden valideren, zich misdragen, waardoor mogelijk padtraversale aanvallen of kwaadaardige bestandssysteembewerkingen mogelijk zijn. Rust 1.89.0 lost het probleem op door zowel Win32- als Unix-stijlpaden af te handelen in de standaardbibliotheek voor het Cygwin-doel. Hoewel we de ernst van deze kwetsbaarheid als "gemiddeld" beoordelen, moet u er rekening mee houden dat het Cygwin-compilatiedoel van niveau 3 alleen beschikbaar is wanneer het vanuit de bron wordt gebouwd: er worden geen vooraf gebouwde binaire bestanden gedistribueerd door het Rust-project en het kan niet via Rustup worden geïnstalleerd. Tenzij je het `x86_64-pc-cygwin` -doel handmatig hebt gecompileerd, ben je niet getroffen door deze kwetsbaarheid. Gebruikers van het niveau 1 MinGW-doel (`x86_64-pc-windows-gnu`) worden ook expliciet niet beïnvloed.
Origineel (Engels) tonen
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.