PT-2021-4061

CVE-2021-22902

·

Published

2021-05-01

·

Updated

2025-09-29

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions actionpack ruby gem versions 6.0.0 through 6.0.3.6 actionpack ruby gem versions 6.1.0 through 6.1.3.1
Description The issue is related to a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine. This can lead to an uncontrolled consumption of resources, potentially allowing a remote attacker to cause a denial of service.
Recommendations For actionpack ruby gem versions 6.0.0 through 6.0.3.6, apply the provided patch 6-0-Prevent-catastrophic-backtracking-during-mime-parsin.patch to prevent catastrophic backtracking during mime parsing. For actionpack ruby gem versions 6.1.0 through 6.1.3.1, apply the provided patch 6-1-Prevent-catastrophic-backtracking-during-mime-parsin.patch to prevent catastrophic backtracking during mime parsing. As a temporary workaround, consider using the monkey patch placed in an initializer to work around the issue.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-G8WW-46X2-2P65
ALSA-2025_16880
ALT-PU-2021-2595
ALT-PU-2023-4268
ALT-PU-2024-7814
OPENSUSE-SU-2024:11318-1
OPENSUSE-SU-2024:11821-1
RHSA-2021:4702
Found an issue in the description? Have something to add? Feel free to write us 👾