# CVE-2021-22880

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-02-11 · Modified: 2024-08-03
- Aliases: SUSE-SU-2021:3267-1, SUSE-SU-2021:3634-1, UBUNTU-CVE-2021-22880, DEBIAN-CVE-2021-22880, openSUSE-SU-2021:1468-1, openSUSE-SU-2021:3634-1, GHSA-8hc4-xxm3-5ppp
- Record: https://cvemate.com/vulnerability/CVE-2021-22880 · JSON: https://cvemate.com/vulnerability/CVE-2021-22880/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 4.487%, percentile 91.734%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian rails (Debian): \< 2:6.0.3.5+dfsg-1
- ubuntu rails (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 32 \| 33
- RubyGems activerecord (RubyGems): ≥ 5.0.0, \< 5.2.4.5 \| ≥ 6.0.0, \< 6.0.3.5 \| ≥ 6.1.0, \< 6.1.2.1
- opensuse rubygem-activerecord-5\_1&distro=openSUSE Leap 15.2 (openSUSE): \< 5.1.4-lp152.4.3.1
- opensuse rubygem-activerecord-5\_1&distro=openSUSE Leap 15.3 (openSUSE): \< 5.1.4-5.3.3
- suse rubygem-activerecord-4\_2&distro=SUSE OpenStack Cloud Crowbar 8 (SUSE Linux Enterprise): \< 4.2.9-6.6.1
- suse rubygem-activerecord-4\_2&distro=SUSE OpenStack Cloud Crowbar 9 (SUSE Linux Enterprise): \< 4.2.9-6.6.1
- suse rubygem-activerecord-5\_1&distro=SUSE Linux Enterprise High Availability Extension 15 (SUSE Linux Enterprise): \< 5.1.4-5.3.3
- suse rubygem-activerecord-5\_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1 (SUSE Linux Enterprise): \< 5.1.4-5.3.3
- suse rubygem-activerecord-5\_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2 (SUSE Linux Enterprise): \< 5.1.4-5.3.3
- suse rubygem-activerecord-5\_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3 (SUSE Linux Enterprise): \< 5.1.4-5.3.3
- rubyonrails rails: ≥ 4.2.0, \< 5.2.4.5 \| ≥ 6.0.0, \< 6.0.3.5 \| ≥ 6.1.0, \< 6.1.2.1

## References (first 20 of 22)

- <https://hackerone.com/reports/1023899>
- <https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/>
- <https://www.debian.org/security/2021/dsa-4929>
- <https://security.netapp.com/advisory/ntap-20210805-0009/>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20213267-1/>
- <https://bugzilla.suse.com/1182169>
- <https://www.suse.com/security/cve/CVE-2021-22880>
- <https://www.suse.com/support/update/announcement/2021/suse-su-20213634-1/>
- <https://ubuntu.com/security/CVE-2021-22880>
- <https://www.cve.org/CVERecord?id=CVE-2021-22880>
- <https://security-tracker.debian.org/tracker/CVE-2021-22880>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/RROJLD5MLZPMJEWUQBDZP3I6WJGCWMUE/>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DSBBYVVTCKLFKYMF7OEIC2G2QUWN6ERM/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22880>
- <https://github.com/rails/rails>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2021-22880.yml>
- <https://groups.google.com/g/rubyonrails-security/c/ZzUqCh9vyhI>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH>

---

Data as of 2026-12-05T11:22:53.192Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
