CVE-2025-58767
ADVISORY - githubSummary
Impact
The REXML gems from 3.3.3 to 3.4.1 have a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities.
Patches
REXML gems 3.4.2 or later include the patches to fix these vulnerabilities.
Workarounds
Don't parse untrusted XMLs.
References
- https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767/ : An announcement on www.ruby-lang.org
Common Weakness Enumeration (CWE)
Uncontrolled Resource Consumption
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
GitHub
CVSS SCORE
1.2low| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| rexml | gem | - | - | >=3.3.3,<=3.4.1 | 3.4.2 |
CVSS:4 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is not bound to the network stack and the attacker's path is via read/write/execute capabilities. Either: The attacker exploits the vulnerability by accessing the target system locally (e.g., keyboard, console), or remotely (e.g., SSH); or the attacker relies on User Interaction by another person to perform actions required to exploit the vulnerability (e.g., using social engineering techniques to trick a legitimate user into opening a malicious document).
Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.
The successful attack does not depend on the deployment and execution conditions of the vulnerable system. The attacker can expect to be able to reach the vulnerability and execute the exploit under all or most instances of the vulnerability.
The attacker is unauthenticated prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
The vulnerable system can be exploited without interaction from any human user, other than the attacker. Examples include: a remote attacker is able to send packets to a target system a locally authenticated attacker executes code to elevate privileges.
There is no loss of confidentiality within the Vulnerable System.
There is no loss of confidentiality within the Subsequent System or all confidentiality impact is constrained to the Vulnerable System.
There is no loss of integrity within the Vulnerable System.
There is no loss of integrity within the Subsequent System or all integrity impact is constrained to the Vulnerable System.
Performance is reduced or there are interruptions in resource availability. Even if repeated exploitation of the vulnerability is possible, the attacker does not have the ability to completely deny service to legitimate users. The resources in the Vulnerable System are either partially available all of the time, or fully available only some of the time, but overall there is no direct, serious consequence to the Vulnerable System.
There is no impact to availability within the Subsequent System or all availability impact is constrained to the Vulnerable System.
NIST
3.9
CVSS SCORE
1.2lowAlpine
-
Debian
-
CVSS SCORE
N/AlowUbuntu
3.9
CVSS SCORE
5.3lowAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AlowRed Hat
3.9
CVSS SCORE
5.3mediumRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumChainguard
CGA-2765-8r55-8wj7
-
Chainguard
CGA-2p3g-89rc-jcvh
-
Chainguard
CGA-3qc9-9hj9-ch8r
-
Chainguard
CGA-74qh-p38g-mc54
-
Chainguard
CGA-8vv6-82pf-cf55
-
Chainguard
CGA-9mjq-x3cw-wpq8
-
Chainguard
CGA-cq62-jf4j-5cx2
-
Chainguard
CGA-hjr9-533q-3hqp
-
Chainguard
CGA-hm38-w55m-ch3j
-
Chainguard
CGA-mhjj-458w-v476
-
Chainguard
CGA-mjjp-mpvp-wv53
-
Chainguard
CGA-p4qj-qxwh-56jg
-
Chainguard
CGA-q7qx-ch7j-v954
-
Chainguard
CGA-rc5j-r65f-rc4v
-
Chainguard
CGA-x388-957j-vf83
-
Chainguard
CGA-xjr6-mqp3-qgp3
-
Photon
CVE-2025-58767
-
CVSS SCORE
5.3mediumminimos
MINI-32f4-q38f-265p
-
minimos
MINI-5f99-r283-2wqp
-
minimos
MINI-5h4w-q34g-h7xr
-
minimos
MINI-6g55-h792-9q8v
-
minimos
MINI-6j48-8p6h-vrc3
-
minimos
MINI-899g-gjvg-6v3r
-
minimos
MINI-8m63-q8qf-32m8
-
minimos
MINI-9m43-p63c-cq92
-
minimos
MINI-c45x-3vgw-5c9v
-
minimos
MINI-f4qj-5987-x4x3
-
minimos
MINI-h2xp-95vc-wm58
-
minimos
MINI-j2vw-xgpx-r8c7
-
minimos
MINI-m86r-qphm-hjq2
-
minimos
MINI-mcmw-6hhq-fqj2
-
minimos
MINI-mcq5-4qg9-w4cg
-
minimos
MINI-qhrq-67q2-75xg
-
minimos
MINI-qrgc-hv33-22vq
-
minimos
MINI-rc45-4v34-5mgr
-
minimos
MINI-w4c2-mq72-v5cx
-