CVE-2021-22880 — Vulnerability in activerecord — CVE Details
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
Summary
Advisory Timeline
- First published March 2, 2021 (2050 days ago).
- Last revised February 20, 2024 — 1085 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activerecord -v 6.1.2.1
gem install activerecord -v 5.2.4.5
gem install activerecord -v 6.0.3.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| activerecord | rubygems | 6.1.0, 6.1.1, 6.1.2 | 6.1.2.1 |
| activerecord | rubygems | 5.0.0, 5.0.0.1, 5.0.1, 5.0.1.rc1 (+53 more) | 5.2.4.5 |
| activerecord | rubygems | 6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+10 more) | 6.0.3.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-22880ADVISORY
- https://hackerone.com/reports/1023899WEB
- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129WEB
- https://github.com/rails/railsWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2021-22880.ymlWEB
- https://groups.google.com/g/rubyonrails-security/c/ZzUqCh9vyhIWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IHWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3WEB
- https://security.netapp.com/advisory/ntap-20210805-0009WEB
- https://www.debian.org/security/2021/dsa-4929WEB
Frequently Asked Questions
- What is CVE-2021-22880?
- Active Record subject to Regular Expression Denial-of-Service (ReDoS) This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2021-22880?
- CVE-2021-22880 affects activerecord. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-22880 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2022-32224CRITICAL
Active Record RCE bug with Serialized Columns
- CVE-2013-3221CRITICAL
Active Record component in Ruby on Rails has a data-type injection vulnerability
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2022-44566HIGH
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
- CVE-2023-22794HIGH
SQL Injection Vulnerability via ActiveRecord comments
- CVE-2016-6317HIGH
ActiveRecord in Ruby on Rails allows database-query bypass
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
- CVE-2025-55193MEDIUM
Active Record logging vulnerable to ANSI escape injection
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies