CVE-2021-41817

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

References

Affected packages

Git / github.com/ruby/ruby

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_1_0
v3_1_1

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "source": "https://github.com/ruby/ruby/commit/f69aeb83146be640995753667fdd6c6f157527f5",
        "target": {
            "file": "ext/cgi/escape/escape.c",
            "function": "optimized_escape_html"
        },
        "id": "CVE-2021-41817-2f76299c",
        "signature_version": "v1",
        "digest": {
            "function_hash": "185553476159107413192269642060714357735",
            "length": 658.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "source": "https://github.com/ruby/ruby/commit/f69aeb83146be640995753667fdd6c6f157527f5",
        "target": {
            "file": "ext/cgi/escape/escape.c"
        },
        "id": "CVE-2021-41817-799f160e",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "221608888545214764521643589590002473795",
                "62837079863855754692353823286478885059",
                "151633818343694841750591657495653307518",
                "112628295566100827065348454738811594068"
            ]
        },
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-41817.json"