Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 16 min 127 bronnen 2 kritiek 1 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-90982

MEDIUM · 5.3 CVSS Gepubliceerd: CWE-178

Beschrijving NL

@fastify/static is een Fastify-plug-in die statische bestanden uit een geconfigureerde hoofdmap bedient. In versies vóór 10.1.4 kan op een hoofdletterongevoelig bestandssysteem zoals Windows of het standaard macOS-volume een routebewaking of toegestane padbeperking worden omzeild door de hoofdletter van een padsegment te wijzigen. De route-matcher is hoofdlettergevoelig terwijl het bestandssysteem dat niet is, dus een verzoek dat het geval van een beveiligd segment wijzigt, komt niet overeen met de bewaakte route en valt door naar de statische afhandelaar, maar het bestandssysteem lost het op in hetzelfde beveiligde bestand. Als gevolg hiervan kan een niet-geverifieerd verzoek een bestand lezen waarvoor een routebewaking of allowedPath is geconfigureerd om te beschermen. Het probleem heeft geen invloed op hoofdlettergevoelige bestandssystemen en is geen directory-traversal, omdat er niets wordt geserveerd van buiten de geconfigureerde root. Het probleem is opgelost in @ fastify/static 10.1.4, dat het gevraagde pad valideert tegen de werkelijke spelling op de schijf en paden met case-aliases vóór autorisatie afwijst. Dien als tijdelijke oplossing statische bestanden van een hoofdlettergevoelig bestandssysteem, of zorg ervoor dat routebewakers en allowedPath-regels rekening houden met elke letter-case-variant van de beschermde paden.

Origineel (Engels) tonen

@fastify/static is a Fastify plugin that serves static files from a configured root directory. In versions before 10.1.4, on a case-insensitive filesystem such as Windows or the default macOS volume, a route guard or allowedPath restriction can be bypassed by altering the letter case of a path segment. The route matcher is case-sensitive while the filesystem is not, so a request that changes the case of a protected segment does not match the guarded route and falls through to the static handler, yet the filesystem resolves it to the same protected file. As a result, an unauthenticated request can read a file that a route guard or allowedPath was configured to protect. The issue does not affect case-sensitive filesystems and is not a directory traversal, since nothing is served from outside the configured root. The issue is fixed in @fastify/static 10.1.4, which validates the requested path against its actual on-disk spelling and rejects case-aliased paths before authorization. As a workaround, serve static files from a case-sensitive filesystem, or ensure route guards and allowedPath rules account for every letter-case variant of the protected paths.

References