Katalog CVE

CVE-2026-90982

ŚrednieCVSS 5.3
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.36%

Percentyl 30 - wyżej niż 30% wszystkich znanych CVE

Streszczenie

@fastify/static to wtyczka Fastify serwująca pliki statyczne z skonfigurowanego katalogu głównego. W wersjach przed 10.1.4 na systemach plików niewrażliwych na wielkość liter (Windows, domyślny macOS) można obejść zabezpieczenie trasy lub ograniczenie allowedPath, zmieniając wielkość liter segmentu ścieżki, ponieważ dopasowanie tras jest wrażliwe na wielkość liter, a system plików nie. W efekcie nieuwierzytelnione żądanie może odczytać plik, który miał być chroniony.

Ocena ryzyka

Nieuwierzytelniony atakujący może uzyskać dostęp do plików, które powinny być chronione przez zabezpieczenia tras lub allowedPath, co prowadzi do wycieku informacji. Problem dotyczy tylko systemów plików niewrażliwych na wielkość liter.

Rekomendacja

Zaktualizuj @fastify/static do wersji 10.1.4 lub nowszej. Jako obejście stosuj system plików wrażliwy na wielkość liter lub uwzględnij wszystkie warianty wielkości liter w regułach allowedPath i zabezpieczeniach tras.

Inne podatności w @fastify/static

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

@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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS