CVE-2021-22885
published 2021-05-27CVE-2021-22885: A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper…
PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
4.20%
89.9th percentile
A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| actionpack_project | actionpack | >= 2.0.0 < 5.2.4.6 | 5.2.4.6 |
| actionpack_project | actionpack | >= 5.2.5 < 5.2.6 | 5.2.6 |
| actionpack_project | actionpack | >= 6.0.0 < 6.0.3.7 | 6.0.3.7 |
| actionpack_project | actionpack | >= 6.1.0 < 6.1.3.2 | 6.1.3.2 |
| debian | debian_linux | — | — |
| debian | rails | < rails 2:6.0.3.7+dfsg-1 (bookworm) | rails 2:6.0.3.7+dfsg-1 (bookworm) |
| https | github.com_rails_rails | — | — |
| rubyonrails | rails | >= 0 < 2:6.0.3.7+dfsg-1 | 2:6.0.3.7+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.7+dfsg-1 | 2:6.0.3.7+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.7+dfsg-1 | 2:6.0.3.7+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.7+dfsg-1 | 2:6.0.3.7+dfsg-1 |
| rubyonrails | rails | >= 5.2.0.0 < 5.2.4.6 | 5.2.4.6 |
| rubyonrails | rails | >= 6.0.0.0 < 6.0.3.7 | 6.0.3.7 |
| rubyonrails | rails | >= 6.1.0.0 < 6.1.3.1 | 6.1.3.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
rubygem-actionpack: Possible Information Disclosure / Unintended Method Execution in Action Pack
vendor_redhat·2021-05-05·CVSS 7.5
CVE-2021-22885 [HIGH] CWE-200 rubygem-actionpack: Possible Information Disclosure / Unintended Method Execution in Action Pack
rubygem-actionpack: Possible Information Disclosure / Unintended Method Execution in Action Pack
A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.
A flaw was found in rubygem-actionpack. Information disclosure or unintended method execution is possible when using the `redirect_to` or `polymorphic_url` helper with untrusted user input. The highest threat from this vulnerability is to data confidentiality.
Statement: Red Hat CloudForms is in the maintenance phase and we will not be fixing Medium/Low impact security bugs. Reference: https://access.redhat.com/support/policy/updates/cloudforms
Package: cfme-gemset (CloudForms Management Engine 5) - Will not
Debian
CVE-2021-22885: rails - A possible information disclosure / unintended method execution vulnerability in...
vendor_debian·2021·CVSS 7.5
CVE-2021-22885 [HIGH] CVE-2021-22885: rails - A possible information disclosure / unintended method execution vulnerability in...
A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.
Scope: local
bookworm: resolved (fixed in 2:6.0.3.7+dfsg-1)
bullseye: resolved (fixed in 2:6.0.3.7+dfsg-1)
forky: resolved (fixed in 2:6.0.3.7+dfsg-1)
sid: resolved (fixed in 2:6.0.3.7+dfsg-1)
trixie: resolved (fixed in 2:6.0.3.7+dfsg-1)
OSV
CVE-2021-22885: A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2
osv·2021-05-27·CVSS 7.5
CVE-2021-22885 [HIGH] CVE-2021-22885: A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2
A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.
OSV
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
osv·2021-05-05
CVE-2021-22885 [HIGH] Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
Impact
There is a possible information disclosure / unintended method execution vulnerability in Action Pack when using the `redirect_to` or `polymorphic_url` helper with untrusted user input.
Vulnerable code will look like this.
```
redirect_to(params[:some_param])
```
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.
Workarounds
To work around this problem, it is recommended to use an allow list for valid parameters passed from the user. For example,
```ruby
private def check(param)
case param
when "valid"
param
else
"/"
end
end
def index
redirect_to(check(params[:some_param]
GHSA
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
ghsa·2021-05-05
CVE-2021-22885 [HIGH] CWE-200 Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
Action Pack contains Information Disclosure / Unintended Method Execution vulnerability
Impact
There is a possible information disclosure / unintended method execution vulnerability in Action Pack when using the `redirect_to` or `polymorphic_url` helper with untrusted user input.
Vulnerable code will look like this.
```
redirect_to(params[:some_param])
```
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.
Workarounds
To work around this problem, it is recommended to use an allow list for valid parameters passed from the user. For example,
```ruby
private def check(param)
case param
when "valid"
param
else
"/"
end
end
def index
redirect_to(check(params[:some_param]
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-05-27
Published