# CVE-2021-22880: Active Record subject to Regular Expression Denial-of-Service (ReDoS)

Source: https://junglewise.ai/threats/cve-2021-22880-active-record-subject-to-regular-expression-denial-of-service  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-03-02  
License: CC BY 4.0 with a link back

CVE-2021-22880 · Severity: low · CVSS 3.1 · Published 2021-03-02

Active Record subject to Regular Expression Denial-of-Service (ReDoS)

Technologies: [activerecord (RubyGems)](https://junglewise.ai/threats/technologies/rubygems-activerecord). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2021-22880 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-22880 being exploited in the wild.

**How severe is CVE-2021-22880?** Low severity, with a CVSS score of 3.1, published 2 March 2021.

**Which products and versions are affected?** activerecord (RubyGems) ECOSYSTEM:introduced=5.0.0,fixed=5.2.4.5.

**Is there a fix for CVE-2021-22880?** Yes. activerecord (RubyGems): upgrade to 5.2.4.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22880?** Check whether you run activerecord (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- activerecord (RubyGems): upgrade to 5.2.4.5 or later

  ```sh
  bundle update activerecord
  ```


## Affected products

- activerecord (RubyGems) ECOSYSTEM:introduced=5.0.0,fixed=5.2.4.5

## Identifiers

- CVE-2021-22880
- GHSA-8hc4-xxm3-5ppp

## Related threats

- [Active Record logging vulnerable to ANSI escape injection](https://junglewise.ai/threats/cve-2025-55193-active-record-logging-vulnerable-to-ansi-escape-injection)
- [Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter](https://junglewise.ai/threats/cve-2022-44566-denial-of-service-vulnerability-in-activerecord-s-postgresql)
- [SQL Injection Vulnerability via ActiveRecord comments](https://junglewise.ai/threats/cve-2023-22794-sql-injection-vulnerability-via-activerecord-comments)
- [Ruby on Rails Active Record RCE via YAML Deserialization in Serialized Columns](https://junglewise.ai/threats/cve-2022-32224-ruby-on-rails-active-record-rce-via-yaml-deserialization-in)
- [Active Record component in Ruby on Rails has a data-type injection vulnerability](https://junglewise.ai/threats/cve-2013-3221-active-record-component-in-ruby-on-rails-has-a-data-type-injection)
