Skip to main content
HIGH

CVE-2021-22880

CVSS v3

7.5

HIGH

EPSS Score

4.4 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for rubygem-activerecord.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • activerecordRubyGemsfrom 6.1.0 · fixed in 6.1.2.1

Vendor advisories

  • CVE-2021-22880 Red Hat Product Security8 known affected

    rubygem-activerecord: crafted input may cause a regular expression DoS

    cfme-gemset as a component of CloudForms Management Engine 5 · cfme-gemset.src as a component of CloudForms Management Engine 5 · rubygem-activerecord as a component of Red Hat 3scale API Management Platform 2

Full record on NVD

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.

Technical details

Published
2021-02-11

Frequently asked questions

What is CVE-2021-22880?

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.

Is CVE-2021-22880 actively exploited?

Active exploitation of CVE-2021-22880 has not been confirmed. Its EPSS score was 4.4% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-22880?

CVE-2021-22880 has a CVSS v3 base score of 7.5 (HIGH severity).

Running rubygem-activerecord? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month