Skip to content

🚨 [security] Update rack 2.2.12 β†’ 2.2.13 (patch)#145

Merged
pboling merged 1 commit into
mainfrom
depfu/update/rack-2.2.13
Mar 11, 2025
Merged

🚨 [security] Update rack 2.2.12 β†’ 2.2.13 (patch)#145
pboling merged 1 commit into
mainfrom
depfu/update/rack-2.2.13

Conversation

@depfu

@depfu depfu Bot commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

↗️ rack (indirect, 2.2.12 β†’ 2.2.13) Β· Repo Β· Changelog

Security Advisories 🚨

🚨 Local File Inclusion in Rack::Static

Summary

Rack::Static can serve files under the specified root: even if urls: are provided, which may expose other files under the specified root: unexpectedly.

Details

The vulnerability occurs because Rack::Static does not properly sanitize user-supplied paths before serving files. Specifically, encoded path traversal sequences are not correctly validated, allowing attackers to access files outside the designated static file directory.

Impact

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, or
  • Remove usage of Rack::Static, or
  • Ensure that root: points at a directory path which only contains files which should be accessed publicly.

It is likely that a CDN or similar static file server would also mitigate the issue.

Commits

See the full diff on Github. The new version differs by 3 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the depfu label Mar 11, 2025
@depfu depfu Bot assigned pboling Mar 11, 2025
@codecov

codecov Bot commented Mar 11, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 92.05%. Comparing base (9a18e0f) to head (c0a79d1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #145   +/-   ##
=======================================
  Coverage   92.05%   92.05%           
=======================================
  Files          15       15           
  Lines         390      390           
  Branches       82       82           
=======================================
  Hits          359      359           
  Misses         31       31           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 13777506736

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.022%

Totals Coverage Status
Change from base Build 13767061170: 0.0%
Covered Lines: 345
Relevant Lines: 375

πŸ’› - Coveralls

@pboling pboling merged commit 19a9d77 into main Mar 11, 2025
@depfu depfu Bot deleted the depfu/update/rack-2.2.13 branch March 11, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants