CVE-2021-22880
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/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| 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 |
References
- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1023899Exploit, Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210805-0009/Third Party Advisory
- https://www.debian.org/security/2021/dsa-4929Third Party Advisory
- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129Mitigation, Patch, Vendor Advisory
- https://hackerone.com/reports/1023899Exploit, Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210805-0009/Third Party Advisory
- https://www.debian.org/security/2021/dsa-4929Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-22880?
How severe is CVE-2021-22880?
How do I fix CVE-2021-22880?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-22875Revive Adserver before 5.1.1 is vulnerable to a reflected XS…6.1
- CVE-2021-22876curl 7.1.1 to and including 7.75.0 is vulnerable to an "Expo…5.3
- CVE-2021-22877A missing user check in Nextcloud prior to 20.0.6 inadverten…6.5
- CVE-2021-22878Nextcloud Server prior to 20.0.6 is vulnerable to reflected …4.8
- CVE-2021-22879Nextcloud Desktop Client prior to 3.1.3 is vulnerable to res…8.8
- CVE-2021-2288Vulnerability in the Oracle Bills of Material product of Ora…8.1
- CVE-2021-22881The Host Authorization middleware in Action Pack before 6.1.…6.1
- CVE-2021-22882UniFi Protect before v1.17.1 allows an attacker to use spoof…7.5
- CVE-2021-22883Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vul…7.5
- CVE-2021-22884Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vul…7.5
- CVE-2021-22885A possible information disclosure / unintended method execut…7.5
- CVE-2021-22886Rocket.Chat before 3.11, 3.10.5, 3.9.7, 3.8.8 is vulnerable …6.1
Are you affected by CVE-2021-22880?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
