CVE-2021-22880
published 2021-02-11CVE-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…
PriorityP341high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
4.43%
90.3th percentile
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
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| activerecord_project | activerecord | >= 5.0.0 < 5.2.4.5 | 5.2.4.5 |
| activerecord_project | activerecord | >= 6.0.0 < 6.0.3.5 | 6.0.3.5 |
| activerecord_project | activerecord | >= 6.1.0 < 6.1.2.1 | 6.1.2.1 |
| debian | rails | < rails 2:6.0.3.5+dfsg-1 (bookworm) | rails 2:6.0.3.5+dfsg-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| https | github.com_rails_rails | — | — |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 0 < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails | rails | >= 4.2.0 < 5.2.4.5 | 5.2.4.5 |
| rubyonrails | rails | >= 6.0.0 < 6.0.3.5 | 6.0.3.5 |
| rubyonrails | rails | >= 6.1.0 < 6.1.2.1 | 6.1.2.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
rubygem-activerecord: crafted input may cause a regular expression DoS
vendor_redhat·2021-02-11·CVSS 7.5
CVE-2021-22880 [HIGH] CWE-400 rubygem-activerecord: crafted input may cause a regular expression DoS
rubygem-activerecord: crafted input may cause a regular expression DoS
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.
The PostgreSQL adapter in Active Record 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 ti
Debian
CVE-2021-22880: rails - The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers...
vendor_debian·2021·CVSS 7.5
CVE-2021-22880 [HIGH] CVE-2021-22880: rails - The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers...
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.
Scope: local
bookworm: resolved (fixed in 2:6.0.3.5+dfsg-1)
bullseye: resolved (fixed in 2:6.0.3.5+dfsg-1)
forky: resolved (fixed in 2:6.0.3.5+dfsg-1)
sid: resolved (fixed in 2:6.0.3.5+dfsg-1)
trixie: resolved (fixed in 2:6.0.3.5+dfsg-1)
OSV
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
osv·2021-03-02
CVE-2021-22880 [HIGH] Active Record subject to Regular Expression Denial-of-Service (ReDoS)
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
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.
GHSA
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
ghsa·2021-03-02
CVE-2021-22880 [HIGH] CWE-400 Active Record subject to Regular Expression Denial-of-Service (ReDoS)
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
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.
OSV
CVE-2021-22880: The PostgreSQL adapter in Active Record before 6
osv·2021-02-11·CVSS 7.5
CVE-2021-22880 [HIGH] CVE-2021-22880: The PostgreSQL adapter in Active Record before 6
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129https://hackerone.com/reports/1023899https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/https://security.netapp.com/advisory/ntap-20210805-0009/https://www.debian.org/security/2021/dsa-4929https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129https://hackerone.com/reports/1023899https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/https://security.netapp.com/advisory/ntap-20210805-0009/https://www.debian.org/security/2021/dsa-4929
2021-02-11
Published