CVE-2021-22880

HIGHCVSS 7.5/10EPSS 4.43%

Last modified

CVE-2021-22880 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 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. EPSS estimates a 4.43% chance of exploitation in the next 30 days.

Description

The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Probability
4.43%

90.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RubyonrailsRails>= 4.2.0, < 5.2.4.5
RubyonrailsRails>= 6.0.0, < 6.0.3.5
RubyonrailsRails>= 6.1.0, < 6.1.2.1
FedoraprojectFedora32
FedoraprojectFedora33

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-22880?
The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 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.
How severe is CVE-2021-22880?
CVE-2021-22880 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 4.43% probability of exploitation in the next 30 days.
How do I fix CVE-2021-22880?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-22880?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST