🚨 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 escalation to RCE when using YAML serialized columns in
Active Record. This vulnerability has been assigned the CVE identifier CVE-2022-32224.
Versions Affected: All.
Not affected: None
Fixed Versions: 7.0.3.1, 6.1.6.1, 6.0.5.1, 5.2.8.1
Impact
When serialized columns that use YAML (the default) are deserialized, Rails
uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an
attacker can manipulate data in the database (via means like SQL injection),
then it may be possible for the attacker to escalate to an RCE.
Impacted Active Record models will look something like this:
classUser < ApplicationRecordserialize:options# Vulnerable: Uses YAML for serializationserialize:values,Array# Vulnerable: Uses YAML for serializationserialize:values,JSON# Not vulnerableend
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.
The released versions change the default YAML deserializer to use YAML.safe_load, which prevents deserialization of possibly dangerous
objects. This may introduce backwards compatibility issues with existing
data.
In order to cope with that situation, the released version also contains two
new Active Record configuration options. The configuration options are as
follows:
config.active_storage.use_yaml_unsafe_load
When set to true, this configuration option tells Rails to use the old
"unsafe" YAML loading strategy, maintaining the existing behavior but leaving
the possible escalation vulnerability in place. Setting this option to true
is not recommended, but can aid in upgrading.
The "safe YAML" loading method does not allow all classes to be deserialized
by default. This option allows you to specify classes deemed "safe" in your
application. For example, if your application uses Symbol and Time in
serialized data, you can add Symbol and Time to the allowed list as follows:
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?
✳️ rails (7.0.3 → 7.0.3.1) · Repo
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ actioncable (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ actionmailbox (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
↗️ actionmailer (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ actionpack (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ actiontext (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ actionview (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ activejob (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ activemodel (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ activerecord (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Security Advisories 🚨
🚨 Possible RCE escalation bug with Serialized Columns in Active Record
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ activestorage (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ activesupport (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
↗️ i18n (indirect, 1.10.0 → 1.11.0) · Repo · Changelog
Release Notes
1.11.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 17 commits:
Bump to 1.11.0
Merge pull request #630 from movermeyer/movermeyer/pluralization_cldr_support
Merge pull request #631 from movermeyer/movermeyer/typos
Merge pull request #628 from sambostock/bulk-translation-missing
[TYPO] `optoins` -> `options`
[TYPO] `explictly` -> `explicitly`
[TYPO] `occurences` -> `occurrences`
[TYPO] `transfering` -> `transferring`
[TYPO] `Reolve` -> `Resolve`
[TYPO] `existant` -> `existent`
[TYPO] `succesfully` -> `successfully`
[TYPO] `supress` -> `suppress`
[TYPO] `translitarate` -> `transliterate`
[TYPO] `explicitely` -> `explicitly`
Add support for CLDR rules in `I18n::Backend::Pluralization`
Consistently return array on bulk lookup
Add test for existing bulk lookup failure behavior
↗️ nokogiri (indirect, 1.13.6 → 1.13.7) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 11 commits:
version bump to v1.13.7
doc: update CHANGELOG
dep: lock rubocop and rubocop-shopify
Merge pull request #2588 from sparklemotion/fix-compaction-on-nodes_backport-to-v1.13.x
dep: lock rake-compiler-dock to 1.2.2
test: add memcheck suppressions
Only add compaction callback on Rubies that support it
Only check compaction on platforms that support it
Add compaction callback to nodes
Add a "node unwrap" macro and use it
Always set a mark function on the node wrapper
↗️ railties (indirect, 7.0.3 → 7.0.3.1) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 3 commits:
Preparing for 7.0.3.1 release
updating version and changelog
Change ActiveRecord::Coders::YAMLColumn default to safe_load
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