PT-2021-5826 · Ruby On Rails+4 · Active Record+4
Dee-See
·
Published
2021-02-11
·
Updated
2025-09-29
·
CVE-2021-22880
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Active Record versions prior to 6.1.2.1
Active Record versions prior to 6.0.3.5
Active Record versions prior to 5.2.4.5
Description
The PostgreSQL adapter in Active Record suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the
money type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.Recommendations
For versions prior to 6.1.2.1, update to version 6.1.2.1 or later.
For versions prior to 6.0.3.5, update to version 6.0.3.5 or later.
For versions prior to 5.2.4.5, update to version 5.2.4.5 or later.
As a temporary workaround, consider restricting the use of the
money type in the PostgreSQL adapter to minimize the risk of exploitation.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Active Record
Astra Linux
Postgresql
Suse