Loading...
Skip to main content

CVE-2020-8164

HIGH

Possible Strong Parameters Bypass in ActionPack

Published May 26, 2020Updated February 16, 2024Source: osv

Summary

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 `each_value`, or `each_pair` 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: `{ is_admin: true }` User.update(clean_up_params) end def clean_up_params params.each { |k, v| SomeModel.check(v) if k == :name } end ``` Note the mistaken use of `each` in the `clean_up_params` method in the above example. Workarounds ----------- Do not use the return values of `each`, `each_value`, or `each_pair` in your application.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update actionpack to 6.0.3.1 or later
gem install actionpack -v 6.0.3.1
Bundler
Update actionpack to 5.2.4.3 or later
gem install actionpack -v 5.2.4.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
actionpack
rubygems
6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+6 more)6.0.3.1
actionpack
rubygems
5.0.0, 5.0.0.1, 5.0.1, 5.0.1.rc1 (+51 more)5.2.4.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2020-8164?
Possible Strong Parameters Bypass in ActionPack This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2020-8164?
CVE-2020-8164 affects actionpack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-8164 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-8727-m6gj-mc37

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies