REXML is an XML toolkit for Ruby. The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between &# and x...; in a hex numeric character reference (&#x...;). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby. The REXML gem 3.3.9 or later include the patch to fix the vulnerability.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-1333"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49761.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.3.9"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "ce59f2eb1aeb371fe1643414f06618dbe031979f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}