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.
[
{
"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
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-41817.json"