Vulnerability DatabaseGHSA-5wvv-q5fv-2388

GHSA-5wvv-q5fv-2388
Rust vulnerability analysis and mitigation

Overview

A moderate severity vulnerability was discovered in hyper-staticfile, identified as GHSA-5wvv-q5fv-2388, affecting versions < 0.9.4 and >= 0.10.0-alpha.1, < 0.10.0-alpha.5. The vulnerability was published on December 30, 2022, and last updated on January 7, 2023. The issue involves the Location header incorporating user input during directory request redirects, potentially allowing open redirect attacks (GitHub Advisory, RustSec Advisory).

Technical details

When hyper-staticfile performs a redirect for a directory request (e.g., a request for /dir that redirects to /dir/), the Location header value was derived directly from user input (the request path) by simply appending a slash. While the intended behavior was to perform an origin-relative redirect, certain inputs could trigger a scheme-relative redirect instead. The vulnerability is categorized under CWE-601 and has been assigned a Moderate severity rating (GitHub Advisory).

Impact

An attacker could exploit this vulnerability by crafting a special URL that appears legitimate but redirects to a malicious domain. This technique could be particularly effective in phishing attacks, where attackers could distribute seemingly innocent links through email that redirect users to malicious sites (RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 0.9.4 and 0.10.0-alpha.5. The fix involves using a sanitized path for redirects instead of directly using user input, preventing scheme-relative redirects. The patch ensures that the redirect path is properly constructed by appending each component separately and maintaining proper path sanitization (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2cgv-28vr-rv6jHIGH8.8
  • RustRust
  • libcrux-intrinsics
NoYesDec 04, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0133N/AN/A
  • RustRust
  • libcrux-intrinsics
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management