Information Exposure

Affecting actionpack gem, versions >=2.0.0, <5.2.4.6 || >=5.2.5, <5.2.6 || >=6.0.0, <6.0.3.7 || >=6.1.0, <6.1.3.2

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

Affected versions of this package are vulnerable to Information Exposure. There is a possible information exposure / unintended method execution when using the redirect_to or polymorphic_url helper with untrusted user input. This arises because url_for supports building polymorphic URLs via an array of arguments (usually symbols and records). If a developer passes a user input array, strings can result in unwanted route helper calls.

Remediation

Upgrade actionpack to version 5.2.4.6, 5.2.6, 6.0.3.7, 6.1.3.2 or higher.

References

CVSS Score

5.3
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    None
  • Availability
    None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Credit
Unknown
CVE
CVE-2021-22885
CWE
CWE-200
Snyk ID
SNYK-RUBY-ACTIONPACK-1290051
Disclosed
05 May, 2021
Published
06 May, 2021