Loading...
Skip to main content

CVE-2021-22880 — Vulnerability in activerecord — CVE Details

HIGH

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

Published March 2, 2021Updated February 20, 2024Source: osv

Summary

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.

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.

Bundler
Update activerecord to 6.1.2.1 or later
gem install activerecord -v 6.1.2.1
Bundler
Update activerecord to 5.2.4.5 or later
gem install activerecord -v 5.2.4.5
Bundler
Update activerecord to 6.0.3.5 or later
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).

PackageEcosystemAffectedFixed In
activerecord
rubygems
6.1.0, 6.1.1, 6.1.26.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-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-8hc4-xxm3-5ppp

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies