Improper Restriction of XML External Entity Reference ('XXE') Affecting rexml package, versions <3.3.6


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-REXML-7814166
  • published23 Aug 2024
  • disclosed22 Aug 2024
  • creditl33thaxor

Introduced: 22 Aug 2024

CVE-2024-43398  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade rexml to version 3.3.6 or higher.

Overview

rexml is an An XML toolkit for Ruby.

Affected versions of this package are vulnerable to Improper Restriction of XML External Entity Reference ('XXE') via tree parser APIs like REXML::Document.new function. An attacker can cause the application to consume excessive resources by submitting specially crafted XML documents with many deep elements that have the same local name attributes.

Note:

This is only exploitable if a tree parser API is used to parse untrusted XMLs.

CVSS Scores

version 4.0
version 3.1