PT-2023-18702

CVE-2023-22796

·

Published

2023-01-18

·

Updated

2026-10-31

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Active Support versions prior to 6.1.7.1 Active Support versions prior to 7.0.4.1
Description The issue is related to insufficient input validation in the Inflector.underscore method, which can lead to a regular expression based DoS vulnerability. A specially crafted string passed to the underscore method can cause the regular expression engine to enter a state of catastrophic backtracking, resulting in high CPU and memory usage, and potentially leading to a denial of service. This affects methods such as String#underscore, ActiveSupport::Inflector.underscore, and String#titleize.
Recommendations For Active Support versions prior to 6.1.7.1, upgrade to version 6.1.7.1 or apply the patch 6-1-Avoid-regex-backtracking-in-Inflector.underscore.patch. For Active Support versions prior to 7.0.4.1, upgrade to version 7.0.4.1 or apply the patch 7-0-Avoid-regex-backtracking-in-Inflector.underscore.patch. As a temporary workaround for users on Ruby 3.2.0 or greater, consider configuring Regexp.timeout to reduce the impact of the issue.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-J6GC-792M-QGM2
ALSA-2025_16880
ALT-PU-2023-1336
ALT-PU-2023-4268
ALT-PU-2024-7814
CLEANSTART-2023-CG09652
DSA-5372-1
OESA-2023-1130
OESA-2023-1140
OESA-2023-1145
OESA-2023-1154
OPENSUSE-SU-2023_0275-1
OPENSUSE-SU-2024:12767-1
OPENSUSE-SU-2024:14071-1
OPENSUSE-SU-2025:15114-1
RHSA-2023:6818
RLSA-2023:6818
SUSE-SU-2023:0275-1
SUSE-SU-2023_0275-1
SUSE-SU-2023:0612-1
Found an issue in the description? Have something to add? Feel free to write us 👾