CVE-2024-41946 REXML DoS vulnerability

Medium 5.3 Published Updated

An attacker can cause a denial of service in applications using the REXML Ruby library by providing XML with many entity expansions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-41946?

CVE-2024-41946 is a medium-severity denial of service vulnerability in ruby rexml, published on 1 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

REXML is an XML toolkit for Ruby. The REXML gem 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. The REXML gem 3.3.3 or later include the patch to fix the vulnerability.

Weakness: CWE-400

Which versions are affected by CVE-2024-41946?

2 open source packages ship an affected version, including rexml. It affects 1 product.

PackageAffectedFixed in
rexml RubyGemsAll versions3.3.3
rexml RubyGemsAll versions3.3.3

Products include Ruby-Lang Rexml.

How do I fix CVE-2024-41946?

Upgrade rexml to 3.3.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-41946 being exploited?

There is no known exploitation of CVE-2024-41946 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2024-41946, AZL-47331, AZL-47358, AZL-47370, AZL-47376, DEBIAN-CVE-2024-41946 and 6 more.

Is CVE-2024-41946 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free