CVE-2020-8164: High severity ruby on rails vulnerability

Published May 26, 2020
·
Updated

A deserialization of untrusted data vulnerability exists in rails < 5.2.4.3, rails < 6.0.3.1 which can allow an attacker to supply information can be inadvertently leaked fromStrong Parameters.

Other sources

There is a strong parameters bypass vector in ActionPack.

Versions Affected: rails <= 6.0.3 Not affected: rails < 5.0.0 Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1

Impact ------ In some cases user supplied information can be inadvertently leaked from Strong Parameters. Specifically the return value of each, or eachvalue, or eachpair will return the underlying "untrusted" hash of data that was read from the parameters. Applications that use this return value may be inadvertently use untrusted user input.

Impacted code will look something like this:

def update # Attacker has included the parameter: { isadmin: true } User.update(cleanupparams) end

def cleanupparams params.each { |k, v| SomeModel.check(v) if k == :name } end

Note the mistaken use of each in the cleanupparams method in the above example.

Workarounds ----------- Do not use the return values of each, eachvalue, or eachpair in your application.

Affected Software

11 affected componentsFixes available
rubygems/actionpack>=6.0.0<=6.0.3
6.0.3.1
rubygems/actionpack>=5.0.0<=5.2.4.2
5.2.4.3
debian/rails
2:5.2.2.1+dfsg-1+deb10u32:5.2.2.1+dfsg-1+deb10u52:6.0.3.7+dfsg-2+deb11u22:6.1.7.3+dfsg-12:6.1.7.3+dfsg-2
rubyonrails Rails<5.2.4.3
rubyonrails Rails>=6.0.0<6.0.3.1
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
openSUSE Backports SLE=15.0-sp1
openSUSE Leap=15.1
openSUSE Leap=15.2

Event History

May 26, 2020
Advisory Published
03:09 PM
Jun 19, 2020
CVE Published
via MITRE·05:04 PM
Data Sourced
via MITRE·05:04 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-8164?

CVE-2020-8164 is a deserialization of untrusted data vulnerability in Rails versions below 5.2.4.3 and below 6.0.3.1.

2

How does CVE-2020-8164 impact systems?

CVE-2020-8164 can lead to the inadvertent leakage of user-supplied information from Strong Parameters in Rails.

3

Which versions of Rails are affected by CVE-2020-8164?

Rails versions below 5.2.4.3 and below 6.0.3.1 are affected by CVE-2020-8164.

4

How can I fix CVE-2020-8164?

To fix CVE-2020-8164, upgrade to Rails version 5.2.4.3 or higher for Rails 5.x and version 6.0.3.1 or higher for Rails 6.x.

5

Where can I find more information about CVE-2020-8164?

More information about CVE-2020-8164 can be found at the following sources: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-8164), [Ruby Advisory Database](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2020-8164.yml), [Google Groups](https://groups.google.com/forum/#!topic/rubyonrails-security/f6ioe4sdpbY).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203