Vulnerabilities · 2021 · Rubyonrails
CVE-2021-22880
Rubyonrails Rails vulnerability
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 products
Rails, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Rubyonrails Rails runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postg · Mitigation
- hackerone.com/reports/1023899 · Exploit
- security.netapp.com/advisory/ntap-20210805-0009/ · Third Party Advisory
- www.debian.org/security/2021/dsa-4929 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X
- nvd.nist.gov/vuln/detail/CVE-2021-22880
- cve.org/CVERecord?id=CVE-2021-22880
More vulnerabilities in Rubyonrails products
CVE-2024-53989CVE-2024-53988CVE-2024-53987CVE-2024-53986CVE-2024-53985CVE-2024-32464CVE-2024-28103CVE-2024-26144All 134
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.