CVE-2021-22880

Source
https://cve.org/CVERecord?id=CVE-2021-22880
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-22880.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-22880
Aliases
Downstream
Related
Published
2021-02-11T18:15:17.333Z
Modified
2026-03-13T22:41:47.660465Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/rails/rails

Affected ranges

Type
GIT
Repo
https://github.com/rails/rails
Events
Database specific
{
    "versions": [
        {
            "introduced": "4.2.0"
        },
        {
            "fixed": "5.2.4.5"
        },
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "6.0.3.5"
        },
        {
            "introduced": "6.1.0"
        },
        {
            "fixed": "6.1.2.1"
        }
    ]
}

Affected versions

v6.*
v6.0.0
v6.0.1.rc1
v6.0.2
v6.0.2.1
v6.0.2.2
v6.0.2.rc1
v6.0.2.rc2
v6.0.3
v6.0.3.1
v6.0.3.2
v6.0.3.3
v6.0.3.4
v6.0.3.rc1
v6.1.0
v6.1.1
v6.1.2

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "32"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "33"
            }
        ]
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-22880.json"