CVE-2024-49761
ADVISORY - githubSummary
Impact
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. Note that Ruby 3.1 will reach EOL on 2025-03.
Patches
The REXML gem 3.3.9 or later include the patch to fix the vulnerability.
Workarounds
Use Ruby 3.2 or later instead of Ruby 3.1.
References
Common Weakness Enumeration (CWE)
Inefficient Regular Expression Complexity
Inefficient Regular Expression Complexity
Inefficient Regular Expression Complexity
NIST
3.9
CVSS SCORE
6.6mediumGitHub
3.9
CVSS SCORE
6.6mediumAlpine
-
Debian
-
Ubuntu
3.9
CVSS SCORE
7.5mediumAlma
-
CVSS SCORE
N/AhighAlma
-
CVSS SCORE
N/AhighAlma
-
CVSS SCORE
N/AhighAlma
-
CVSS SCORE
N/AhighRed Hat
3.9
CVSS SCORE
7.5highRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AlowOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AmediumChainguard
CGA-2gpc-f6rv-mwcf
-
Chainguard
CGA-35f5-2796-7j5c
-
Chainguard
CGA-3cv5-7q2w-gm55
-
Chainguard
CGA-53j8-54vg-rvfj
-
Chainguard
CGA-56rj-cgc7-f869
-
Chainguard
CGA-7vmr-cv3q-gpcj
-
Chainguard
CGA-83cq-9pq8-xrvg
-
Chainguard
CGA-cqv9-vmcm-5vx5
-
Chainguard
CGA-cwr5-c6j9-f552
-
Chainguard
CGA-gr5v-6xfr-x883
-
Chainguard
CGA-jc66-vfr7-jhxc
-
Chainguard
CGA-m4v5-7rr7-85jx
-
Chainguard
CGA-m7cp-6wwh-r8f5
-
Chainguard
CGA-qhfg-ph95-vwcr
-
Chainguard
CGA-r55w-gc62-2gcj
-
Chainguard
CGA-rvq3-hxxr-fjr7
-
Chainguard
CGA-v6w6-p5jc-5r4x
-
Chainguard
CGA-x2f6-rcg5-h8cx
-
Photon
CVE-2024-49761
-
CVSS SCORE
7.5highminimos
MINI-ccr5-4hxf-p8rx
-
minimos
MINI-mr5h-rc2g-8v42
-