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?
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
