CVE-2021-22880

Uncontrolled Resource Consumption in gem/rails

Identifier

CVE-2021-22880

Package Slug

gem/rails

Vulnerability

Uncontrolled Resource Consumption

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.

Affected Versions

All versions starting from 4.2.0 before 5.2.4.5, all versions starting from 6.0.0 before 6.0.3.5, all versions starting from 6.1.0 before 6.1.2.1

Solution

Upgrade to versions 5.2.4.5, 6.0.3.5, 6.1.2.1 or above.

Last Modified

2021-02-19

source