CVE-2021-22880: Input Validation

Published Feb 11, 2021
·
Updated

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.

Affected Software

6 affected componentsFixes available
debian/rails
2:5.2.2.1+dfsg-1+deb10u32:5.2.2.1+dfsg-1+deb10u52:6.0.3.7+dfsg-2+deb11u22:6.1.7.3+dfsg-12:6.1.7.3+dfsg-2
rubyonrails Rails>=4.2.0<5.2.4.5
rubyonrails Rails>=6.0.0<6.0.3.5
rubyonrails Rails>=6.1.0<6.1.2.1
fedoraproject fedora=32
fedoraproject fedora=33

Event History

Feb 11, 2021
CVE Published
via MITRE·04:11 PM
Data Sourced
via MITRE·04:11 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-22880?

CVE-2021-22880 is a regular expression denial of service (REDoS) vulnerability in the PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5.

2

What is the severity of CVE-2021-22880?

CVE-2021-22880 has a severity score of 7.5 (high).

3

Which software versions are affected by CVE-2021-22880?

CVE-2021-22880 affects Rails versions 5.2.4.5, 6.0.3.5, 6.1.2.1, and earlier.

4

How can I fix the CVE-2021-22880 vulnerability?

To fix the CVE-2021-22880 vulnerability, upgrade to Active Record versions 5.2.2.1+dfsg-1+deb10u3, 6.0.3.7+dfsg-2+deb11u2, 6.1.7.3+dfsg-1, or 6.1.7.3+dfsg-2.

5

Where can I find more information about CVE-2021-22880?

You can find more information about CVE-2021-22880 at the following references: [link1](https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129), [link2](https://hackerone.com/reports/1023899), [link3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203