CVE-2024-41123 REXML DoS vulnerability

Medium 5.3 Published Updated

An attacker can cause a denial of service in applications using the REXML Ruby library by sending XML with specific character sequences.

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-41123?

CVE-2024-41123 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 before 3.3.2 has some DoS vulnerabilities when it parses an XML that has many specific characters such as whitespace character, `>]` and `]>`. The REXML gem 3.3.3 or later include the patches to fix these vulnerabilities.

Weakness: CWE-400

Which versions are affected by CVE-2024-41123?

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-41123?

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-41123 being exploited?

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

Sources

Also known as ALPINE-CVE-2024-41123, DEBIAN-CVE-2024-41123, ECHO-ec4d-0931-98ce, GHSA-r55c-59qm-vjw6, MINI-jwh7-xcc4-35p8, UBUNTU-CVE-2024-41123.

Is CVE-2024-41123 in your software?

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

Check your SBOMs for free