Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting rexml package, versions >=3.3.3, <3.4.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th 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-12878608
  • published18 Sept 2025
  • disclosed17 Sept 2025
  • creditSofia Aberegg

Introduced: 17 Sep 2025

NewCVE-2025-58767  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade rexml to version 3.4.2 or higher.

Overview

rexml is an An XML toolkit for Ruby.

Affected versions of this package are vulnerable to Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') due to parsing XML. An attacker can cause excessive resource consumption and disrupt service availability by submitting specially crafted XML files containing multiple XML declarations.

References

CVSS Base Scores

version 4.0
version 3.1