🚨 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.
There is a possible DoS vulnerability in the model name parsing section
of the GlobalID gem. Carefully crafted input can cause the regular
expression engine to take an unexpected amount of time. All users running
an affected release should either upgrade or use one of the workarounds
immediately.
Possible ReDoS based DoS vulnerability in GlobalID
There is a ReDoS based DoS vulnerability in the GlobalID gem. This
vulnerability has been assigned the CVE identifier CVE-2023-22799.
Versions Affected: >= 0.2.1
Not affected: NOTAFFECTED
Fixed Versions: 1.0.1
Impact
There is a possible DoS vulnerability in the model name parsing section of the
GlobalID gem. Carefully crafted input can cause the regular expression engine
to take an unexpected amount of time. All users running an affected release
should either upgrade or use one of the workarounds immediately.
Releases
The FIXED releases are available at the normal locations.
1.0.0 to 1.2.9 when used with the Ruby data source (tzinfo-data).
Vulnerability
With the Ruby data source (the tzinfo-data gem for tzinfo version 1.0.0 and
later and built-in to earlier versions), time zones are defined in Ruby files.
There is one file per time zone. Time zone files are loaded with require on
demand. In the affected versions, TZInfo::Timezone.get fails to validate
time zone identifiers correctly, allowing a new line character within the
identifier. With Ruby version 1.9.3 and later, TZInfo::Timezone.get can be
made to load unintended files with require, executing them within the Ruby
process.
For example, with version 1.2.9, you can run the following to load a file with
path /tmp/payload.rb:
The exact number of parent directory traversals needed will vary depending on
the location of the tzinfo-data gem.
TZInfo versions 1.2.6 to 1.2.9 can be made to load files from outside of the
Ruby load path. Versions up to and including 1.2.5 can only be made to load
files from directories within the load path.
This could be exploited in, for example, a Ruby on Rails application using
tzinfo version 1.2.9, that allows file uploads and has a time zone selector
that accepts arbitrary time zone identifiers.
The CVSS score and severity have been set on this basis.
Versions 2.0.0 and later are not vulnerable.
Patches
Versions 0.3.61 and 1.2.10 include fixes to correctly validate time zone
identifiers.
Note that version 0.3.61 can still load arbitrary files from the Ruby load
path if their name follows the rules for a valid time zone identifier and the
file has a prefix of tzinfo/definition within a directory in the load path.
For example if /tmp/upload was in the load path, then TZInfo::Timezone.get('foo') could load a file with path /tmp/upload/tzinfo/definition/foo.rb. Applications should ensure that
untrusted files are not placed in a directory on the load path.
Workarounds
As a workaround, the time zone identifier can be validated before passing to TZInfo::Timezone.get by ensuring it matches the regular expression \\A[A-Za-z0-9+\\-_]+(?:\\/[A-Za-z0-9+\\-_]+)*\\z.
Fixed a relative path traversal bug that could cause arbitrary files to be loaded with require when used with RubyDataSource. Please refer to GHSA-5cm2-9h8c-rvfx for details. CVE-2022-31163.
Ignore the SECURITY file from Arch Linux's tzdata package. #134.
Fixed an incorrect InvalidTimezoneIdentifier exception raised when loading a zoneinfo file that includes rules specifying an additional transition to the final defined offset (for example, Africa/Casablanca in version 2018e of the Time Zone Database). #123.
Added support for handling "slim" format zoneinfo files that are produced by default by zic version 2020b and later. The POSIX-style TZ string is now used calculate DST transition times after the final defined transition in the file. The 64-bit section is now always used regardless of whether Time has support for 64-bit times. #120.
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 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)
🚨 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?
↗️ globalid (indirect, 0.4.1 → 1.0.1) · Repo · Changelog
Security Advisories 🚨
🚨 ReDoS based DoS vulnerability in GlobalID
Release Notes
1.0.1
1.0.0
0.6.0
0.5.2
0.5.1
0.4.2
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 75 commits:
Bump version for release
Fix ReDoS vulnerability in name parsing
Prepare for 1.0.0
Prepare to 0.6.0
Upgrade all development gems
Add devcontainer to allow contributors to have a working environment
Move ActiveRecord::FixtureSet.signed_global_id to this gem
Merge pull request #137 from rails/dependabot/bundler/nokogiri-1.12.5
Bump nokogiri from 1.11.7 to 1.12.5
Why u no love me?
Bump 0.5.2 for Ruby 2.5 support again
Add back 2.5 so clean gem install rails works again
Move CI to GitHub Actions (#134)
Bump development Gems to shush Dependabot warnings
Merge pull request #133 from rails/dependabot/bundler/nokogiri-1.11.7
Bump to 0.5.1 for Active Support Gemfile.lock update
Looks like the matrix option has been renamed to jobs
Try incluces over exclude
rbx-2 isn't supported on CI anymore, cut it
Test with Ruby 3 and exclude matrix versions that don't coexist
Railties is also a test dependency, like 5.0+ gemfiles
Test integration with Rails 6.0+
Ditch long since EOL'ed Rails 4.2 support
Bump nokogiri from 1.9.1 to 1.11.7
Cut out EOL Ruby versions (< 2.6.0)
Fix CI script indentation to match before_install/before_script etc
Add newer Rubies to increase our CI confidence
Remove unused build notification sources
Merge pull request #132 from casperisfine/ruby-head-support
Fix ruby-head support
Merge pull request #131 from amatsuda/rm_as_concern
GlobalID::Identification uses no AS::Concern feature
Merge pull request #128 from tekin/global-non-expiring-ids
Allow expires_in to be configured to nil globally
Merge pull request #125 from rails/dependabot/bundler/rack-2.1.4
Bump rack from 2.0.8 to 2.1.4
Merge pull request #124 from rails/ruby_2_2_rails_5_2_fix_ci
Use 5-2-stable branch to fix Ruby 2.2 CI
Merge pull request #123 from rails/require_core_ext_time
Require time core extension for 1.year
Merge pull request #122 from rails/dependabot/bundler/rake-12.3.3
Bump rake from 12.3.2 to 12.3.3
Merge pull request #121 from rails/dependabot/bundler/rack-2.0.8
Bump rack from 2.0.6 to 2.0.8
Tune locate_many description to fit Global ID terminology better
Merge pull request #119 from ideasasylum/docs/locate-many-description
Merge pull request #120 from olleolleolle/patch-1
Drop unused Travis sudo: false directive
Add a description of locate_many / locate_many_signed
Merge pull request #118 from rails/dependabot/bundler/loofah-2.3.1
Bump loofah from 2.2.3 to 2.3.1
Explicitly specify `secret_key_base` in railtie test
Fallback to bundler 1.7.3 for Ruby <= 2.3
Try to fix build failure by requiring forwardable.
Bump supported Ruby versions to match Rails 5.
Ignore pkg directory for releasing.
Release 0.4.2
Test against latest Rubies
Merge pull request #113 from y-yagi/test_against_rails_52
Specify Rails env in a test of `secret_key_base is not present`
Use `secret_key_base` instead of deprecated `secret_token`
Test against Rails 5.2
Allow configuration in initializers
Fix typo
Merge pull request #108 from fattymiller/uniq-equality
Merge pull request #109 from bradleybuda/master
Remove memoization of GlobalID::Identification#to_global_id
GlobalID::Identification clears memoized to_global_id on dup
minitest 5.11 crashes with old versions of rails
Ignore .lock files for tests
Array#uniq to correctly identify == GlobalIDs
[ci skip] Convert all samples back to Ruby.
No such thing as labels, all purpose, baby.
Merge pull request #106 from ideasasylum/ideasasylum-improved-expiration-readme
Improved documentation clarity around expiration
↗️ concurrent-ruby (indirect, 1.0.5 → 1.1.10) · Repo · Changelog
Release Notes
1.1.10
1.1.9 (from changelog)
1.1.8 (from changelog)
1.1.7 (from changelog)
1.1.6 (from changelog)
1.1.5 (from changelog)
1.1.4 (from changelog)
1.1.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗️ i18n (indirect, 1.1.0 → 1.12.0) · Repo · Changelog
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗️ minitest (indirect, 5.11.3 → 5.17.0) · Repo · Changelog
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗️ tzinfo (indirect, 1.2.5 → 1.2.10) · Repo · Changelog
Security Advisories 🚨
🚨 TZInfo relative path traversal vulnerability allows loading of arbitrary files
Release Notes
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
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