Technical impact
Rack::Static serves content after normalizing the path with Utils.clean_path_info but evaluates header_rules against a path that is only URL decoded, creating a mismatch that is a classic example of CWE‑180 (Path Manipulation After URL Decoding) and CWE‑41 (URL Normalization). An unauthenticated attacker can trigger this by requesting a file with raw or percent‑encoded dot segments, causing that file to be returned without any of the security headers that would normally be applied such as Content‑Disposition or Content‑Security‑Policy. This does not allow code execution, but it removes a layer of defense that can lead to information disclosure or cross‑site scripting if the missing headers are relied upon for security. The vulnerability is therefore an information‑disclosure type weakness, involving the omission of security controls.
Affected Systems
The flaw exists in Rack versions earlier than 2.2.25, 3.1.23, and 3.2.8. It is limited to the Rack::Static component and only affects applications that enable path‑specific header_rules. Applications that do not use such header_rules, or that have not applied the vulnerable code, are not impacted. The vendor is Rack, the product is the Ruby Rack web server interface.
Risk and Exploitability
With a CVSS score of 5.3 the vulnerability is considered moderate. Its exploitability is high for web applications that use Rack::Static with path‑specific header_rules, because the attack requires only an unauthenticated HTTP request containing a crafted URL. Web applications that do not employ path‑specific header_rules are not affected. EPSS score of < 1% indicates a very low but nonzero exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, so there is no evidence of current widespread exploitation. Nevertheless, because the flaw allows an attacker to obtain files without the expected security headers, the risk to confidentiality and integrity of served content warrants prompt remediation. The likely attacker profile is a remote web attacker with knowledge of the application directory layout.
Github GHSA