CVE-2021-41817

Source
https://cve.org/CVERecord?id=CVE-2021-41817
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41817.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41817
Aliases
Downstream
Related
Published
2022-01-01T05:15:08.197Z
Modified
2026-07-08T05:57:53.015216900Z
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

Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                },
                {
                    "introduced": "10.0"
                },
                {
                    "last_affected": "10.0"
                },
                {
                    "introduced": "11.0"
                },
                {
                    "last_affected": "11.0"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "vendor_product": "fedoraproject:fedora",
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING",
            "extracted_events": [
                {
                    "introduced": "34"
                },
                {
                    "last_affected": "34"
                },
                {
                    "introduced": "35"
                },
                {
                    "last_affected": "35"
                }
            ]
        },
        {
            "vendor_product": "opensuse:leap",
            "cpes": [
                "cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "15.2"
                },
                {
                    "last_affected": "15.2"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "vendor_product": "redhat:enterprise_linux",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                },
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:o:suse:linux_enterprise:12.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:suse:linux_enterprise:15.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "suse:linux_enterprise",
            "extracted_events": [
                {
                    "introduced": "12.0"
                },
                {
                    "last_affected": "12.0"
                },
                {
                    "introduced": "15.0"
                },
                {
                    "last_affected": "15.0"
                }
            ],
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/ruby/date

Affected ranges

Type
GIT
Repo
https://github.com/ruby/date
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:ruby-lang:date:*:*:*:*:*:ruby:*:*",
        "cpe:2.3:a:ruby-lang:date:3.2.0:*:*:*:*:ruby:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.0.1"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.0.2"
        },
        {
            "introduced": "3.1.0"
        },
        {
            "fixed": "3.1.2"
        },
        {
            "introduced": "3.2.0"
        },
        {
            "last_affected": "3.2.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ]
}

Affected versions

3.*
3.2.0
v0.*
v0.0.1
v1.*
v1.0.0
v2.*
v2.0.0
v3.*
v3.0.0
v3.0.1
v3.1.0
v3.1.1
v3.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41817.json"

Git / github.com/ruby/ruby

Affected ranges

Type
GIT
Repo
https://github.com/ruby/ruby
Events
Database specific
{
    "cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.6.0"
        },
        {
            "fixed": "2.6.9"
        },
        {
            "introduced": "2.7.0"
        },
        {
            "fixed": "2.7.5"
        },
        {
            "introduced": "3.0.0"
        },
        {
            "fixed": "3.0.3"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

Other
v2_7_0
v2_7_1
v2_7_2
v2_7_3
v2_7_4
v3_0_0
v3_0_1
v3_0_2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41817.json"