Skip to content

Fix Local File Inclusion in Rack::Static - #12005

Closed
odaysec wants to merge 1 commit into
18F:mainfrom
odaysec:patch-1
Closed

Fix Local File Inclusion in Rack::Static#12005
odaysec wants to merge 1 commit into
18F:mainfrom
odaysec:patch-1

Conversation

@odaysec

@odaysec odaysec commented Mar 21, 2025

Copy link
Copy Markdown

Rack::Static can serve files under the specified root: even if urls: are provided, which may expose other files under the specified root: unexpectedly. By exploiting this vulnerability, an attacker can gain access to all files under the specified root: directory, provided they are able to determine then path of the file.

Mitigation

  • Update to the latest version of Rack
  • Remove usage of Rack::Static
  • Ensure that root: points at a directory path which only contains files which should be accessed publicly.

CWE-23
CVE-2025-27610

@mitchellhenke

Copy link
Copy Markdown
Contributor

Closing as a duplicate of #11996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants