CVE-2024-43398

NameCVE-2024-43398
DescriptionREXML is an XML toolkit for Ruby. The REXML gem before 3.3.6 has a DoS vulnerability when it parses an XML that has many deep elements that have same local name attributes. If you need to parse untrusted XMLs with tree parser API like REXML::Document.new, you may be impacted to this vulnerability. If you use other parser APIs such as stream parser API and SAX2 parser API, this vulnerability is not affected. The REXML gem 3.3.6 or later include the patch to fix the vulnerability.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1083190, 1083191

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby2.1 (PTS)jessie, jessie (lts)2.1.5-2+deb8u14vulnerable
ruby2.3 (PTS)stretch (security)2.3.3-1+deb9u11vulnerable
stretch (lts), stretch2.3.3-1+deb9u12vulnerable
ruby2.5 (PTS)buster, buster (lts)2.5.5-3+deb10u7vulnerable
buster (security)2.5.5-3+deb10u6vulnerable
ruby2.7 (PTS)bullseye2.7.4-1+deb11u1vulnerable
bullseye (security)2.7.4-1+deb11u2vulnerable
ruby3.1 (PTS)bookworm (security), bookworm3.1.2-7+deb12u1vulnerable
sid, trixie3.1.2-8.4vulnerable
ruby3.2 (PTS)sid3.2.3-1vulnerable
ruby3.3 (PTS)sid, trixie3.3.5-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby2.1source(unstable)(unfixed)
ruby2.3source(unstable)(unfixed)
ruby2.5source(unstable)(unfixed)
ruby2.7source(unstable)(unfixed)
ruby3.1source(unstable)(unfixed)1083190
ruby3.2source(unstable)(unfixed)1083191
ruby3.3source(unstable)3.3.5-1

Notes

[bookworm] - ruby3.1 <no-dsa> (Minor issue)
[bullseye] - ruby2.7 <postponed> (Minor issue, DoS)
https://github.com/ruby/rexml/security/advisories/GHSA-vmwr-mc7x-5vc3
[jessie] - ruby2.1 <postponed> (Minor issue, DoS)
[stretch] - ruby2.3 <postponed> (Minor issue, DoS)
[buster] - ruby2.5 <postponed> (Minor issue, DoS)

Search for package or bug name: Reporting problems