CVE-2021-22880
publishedrubygem-activerecord: crafted input may cause a regular expression DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/rails/railsFixed in 6.1.2.1, 6.0.3.5, 5.2.4.5 | Affected | Not stated | hackerone |
| Debian | buster | rails | Advisory build | 2:5.2.2.1+dfsg-1+deb10u3 | DSA-4929-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-activerecord-5_1aarch64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-activerecord-5_1ppc64le | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-activerecord-5_1s390x | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-activerecord-5_1aarch64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-activerecord-5_1ppc64le | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
Show 35 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-activerecord-5_1s390x | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-activerecord-5_1aarch64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-activerecord-5_1ppc64le | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-activerecord-5_1s390x | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-activerecord-5_1aarch64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-activerecord-5_1ppc64le | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-activerecord-5_1s390x | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-5.3.3 | SUSE-SU-2021:3634-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-lp152.4.3.1 | OPENSUSE-SU-2021:1468-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-activerecord-5_1aarch64 | Advisory build | 5.1.4-5.3.3 | OPENSUSE-SU-2021:3634-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-activerecord-5_1ppc64le | Advisory build | 5.1.4-5.3.3 | OPENSUSE-SU-2021:3634-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-activerecord-5_1s390x | Advisory build | 5.1.4-5.3.3 | OPENSUSE-SU-2021:3634-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-activerecord-5_1x86_64 | Advisory build | 5.1.4-5.3.3 | OPENSUSE-SU-2021:3634-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-5.2aarch64 | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-5.2ppc64le | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-5.2s390x | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-5.2x86_64 | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-6.0aarch64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-6.0ppc64le | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-6.0s390x | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-activerecord-6.0x86_64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-5.2aarch64 | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-5.2ppc64le | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-5.2s390x | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-5.2x86_64 | Advisory build | 5.2.6-1.2 | OPENSUSE-SU-2024:11326-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-6.0aarch64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-6.0ppc64le | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-6.0s390x | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-activerecord-6.0x86_64 | Advisory build | 6.0.4-1.2 | OPENSUSE-SU-2024:11327-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-6.0aarch64 | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11826-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-6.0ppc64le | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11826-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-6.0s390x | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11826-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-activerecord-6.0x86_64 | Advisory build | 6.0.4.4-1.1 | OPENSUSE-SU-2024:11826-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/rails/rails | Fixed in 6.1.2.1, 6.0.3.5, 5.2.4.5 (affected) | hackerone · cna |
Weaknesses
1- CWE-400 Denial of Service (CWE-400)
References
6- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129
- https://hackerone.com/reports/1023899
- FEDORA-2021-def0e32233 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/
- FEDORA-2021-b571fca1b8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/
- https://security.netapp.com/advisory/ntap-20210805-0009/
- DSA-4929 https://www.debian.org/security/2021/dsa-4929
Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5ca5c66daab0908771fb5377138dd18cf3a547b5c011d10d5f680f2cdaea1831
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record