Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting ruby3.2-rubygem-bigdecimal package, versions <0:3.1.3-184.amzn2023.0.6


Severity

Recommended
low

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.02% (6th 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-AMZN2023-RUBY32RUBYGEMBIGDECIMAL-13166152
  • published1 Oct 2025
  • disclosed17 Sept 2025

Introduced: 17 Sep 2025

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

How to fix?

Upgrade Amazon-Linux:2023 ruby3.2-rubygem-bigdecimal to version 0:3.1.3-184.amzn2023.0.6 or higher.
This issue was patched in ALAS2023-2025-1204.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.2-rubygem-bigdecimal package and not the ruby3.2-rubygem-bigdecimal package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

REXML is an XML toolkit for Ruby. The REXML gems from 3.3.3 to 3.4.1 has a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.

CVSS Base Scores

version 3.1