PT-2021-4590

CVE-2021-22885

·

Published

2021-02-18

·

Updated

2025-09-29

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Action Pack versions 2.0.0 and later Action Pack versions prior to 5.2 with the provided patch Action Pack versions prior to 6.0 with the provided patch Action Pack versions prior to 6.1 with the provided patch
Description The issue is related to a possible information disclosure or unintended method execution in Action Pack when using the redirect to or polymorphic url helper with untrusted user input. This could allow a remote attacker to access confidential data. Vulnerable code may look like redirect to(params[:some param]).
Recommendations For Action Pack version 2.0.0 and later, upgrade to a fixed release or apply one of the provided patches. For Action Pack versions prior to 5.2, apply the 5-2-information-disclosure.patch. For Action Pack versions prior to 6.0, apply the 6-0-information-disclosure.patch. For Action Pack versions prior to 6.1, apply the 6-1-information-disclosure.patch. As a temporary workaround, consider using an allow list for valid parameters passed from the user, such as implementing a check function to validate user input before using it in redirect to. Alternatively, force the user input to be cast to a string, like params[:some param].to s, to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-HJG4-8Q5F-X6FM
ALSA-2025_16880
ALT-PU-2021-2595
ALT-PU-2023-4268
ALT-PU-2024-7814
DLA-2655-1
DSA-4929-1
OESA-2021-1236
OPENSUSE-SU-2021:0797-1
OPENSUSE-SU-2021_0797-1
OPENSUSE-SU-2021:1759-1
OPENSUSE-SU-2021_1759-1
OPENSUSE-SU-2024:11317-1
OPENSUSE-SU-2024:11318-1
OPENSUSE-SU-2024:11821-1
RHSA-2021:4702
SUSE-SU-2021:1650-1
SUSE-SU-2021:1759-1
SUSE-SU-2021_1759-1
SUSE-SU-2022:15116-1
Found an issue in the description? Have something to add? Feel free to write us 👾