# CVE-2025-58767: REXML has a DoS condition when parsing malformed XML file

- Priority: **Routine**
- Reason: Not severe (CVSS 1.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-17 · Modified: 2025-09-17
- Aliases: ALPINE-CVE-2025-58767, RHSA-2025:23140, UBUNTU-CVE-2025-58767, DEBIAN-CVE-2025-58767, CGA-246w-3pjh-rr7w, CGA-42q4-fgqp-85cm, CGA-43cc-pxp7-cc4g, CGA-64wf-wxx3-4wcm, CGA-8h23-56f6-w46w, CGA-8hfv-m7c3-54vg, CGA-8vq7-cj34-mp9j, CGA-ch52-hcjx-jj93, CGA-f8r3-m574-47cr, CGA-gr98-3wf4-hr9g, CGA-j568-3v2h-v7p6, CGA-v43q-66hv-8wh3, CGA-w972-gjr8-c82r, CGA-x96j-72qw-73xh, openSUSE-SU-2025:15828-1, CGA-24w5-96m3-g69p, CGA-2p6q-wpwf-jww6, CGA-346m-fcr2-7prh, CGA-3575-xwjp-74mh, CGA-39m8-8m5g-63j8, CGA-3f2f-h964-g6m7, CGA-3jm7-fr3p-955c, CGA-3v58-cx43-5g6q, CGA-3w24-c564-m3rv, CGA-3w2p-3wxm-fhwf, CGA-46gf-39rm-8r2x, CGA-4875-v4qr-46qp, CGA-4crf-jvpj-rc5q, CGA-4h9f-j9vg-f57g, CGA-4mqv-jx9w-j4j5, CGA-4v9g-p5wq-v26m, CGA-4wxm-c755-rfwf, CGA-54w5-cr5x-mmmg, CGA-566j-prpp-m4cm, CGA-59vp-m46f-vvq3, CGA-5fcj-cx83-x7jp, CGA-5p4j-32gp-wjhf, CGA-5w8w-92j2-9c5w, CGA-5xxv-57cg-cmxv, CGA-68fj-3jxj-j82w, CGA-6fw7-gf2x-gx5f, CGA-6pcf-qg85-8364, CGA-6pxc-v6c6-684v, CGA-855q-2qpw-w59v, CGA-86qg-996j-rm7h, CGA-89r7-6j44-jg9r, CGA-8q3g-83xv-wjpg, CGA-8vm9-3hfm-hv7m, CGA-8xhp-69fg-3gwm, CGA-9cqw-gm99-qf8w, CGA-9mx7-57p7-mp6f, CGA-9v3c-jjhx-mhhh, CGA-9x2h-2q6w-vxqv, CGA-c565-r5p8-94wx, CGA-c5fg-p33v-rpq4, CGA-c94g-j3jx-w32p, CGA-chff-f9cp-98vf, CGA-f4h5-33f4-pmpq, CGA-f89q-8x7h-j4mm, CGA-f94x-fhf6-m9mf, CGA-fcwj-388p-j2gm, CGA-fw27-mffr-7h6f, CGA-fx92-9299-725p, CGA-g43g-mghc-gcgm, CGA-g4p7-439j-5qf8, CGA-g5jv-4jj9-ppmc, CGA-gv2g-mrv7-rrq2, CGA-h2ww-78j6-9748, CGA-h3wf-jqvf-m38q, CGA-h928-32gx-6hgg, CGA-hhr3-m25v-7556, CGA-hwjr-4j69-fg6r, CGA-hx6w-f2c2-94cp, CGA-j6rv-p8cc-j8v9, CGA-j9fp-pm8r-8rhm, CGA-jxv5-jrwj-vgmj, CGA-mfm7-32c2-g8cq, CGA-mmr9-x895-rfr9, CGA-mphx-c662-jwvc, CGA-mr2c-59gr-pp88, CGA-p48h-mmhg-fp7r, CGA-p89h-6wrp-wpf7, CGA-pgc3-5gfv-hw3q, CGA-prmr-wq8v-8h6h, CGA-prw7-4w4v-3wfj, CGA-pw5v-gcrg-327c, GHSA-c2f4-jgmc-q2r5, CGA-px43-wv7r-wr4v, CGA-qf5q-7cwc-4q8r, CGA-qjcr-hqcv-h5h5, CGA-qm73-fxg5-54jv, CGA-qxq2-m72g-wr85, CGA-r4x6-3p3p-jvmg, CGA-r5h4-5cv4-q4p8, CGA-r752-m548-3mrp, CGA-r87c-3fmp-mc73, CGA-rf5j-qfhx-rw57, CGA-rrrx-32pw-7wxv, CGA-rwxq-q3ff-jh6q, CGA-v2w5-pp77-8cqx, CGA-v3f8-vv95-xq73, CGA-vm6q-4833-jmx3, CGA-vv9v-x5fw-vm4q, CGA-w45g-jc8f-qmqq, CGA-w4jq-fgj4-9pq9, CGA-whj9-43j4-hp4c, CGA-wr9h-4mv6-pfj2, CGA-wv6v-4f85-5f44, CGA-x6ch-j27x-mjmx, CGA-x99h-8c5v-ffp3, CGA-xf92-w6pj-56hv, CGA-xg29-5f6x-r4jr, CGA-xw7m-p4jx-h5pj, CGA-xwv6-24vj-w7mv
- Record: https://cvemate.com/vulnerability/CVE-2025-58767 · JSON: https://cvemate.com/vulnerability/CVE-2025-58767/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.25%, percentile 17.461%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 116)

- alpine ruby-rexml (Alpine Linux): ≥ 3.3.3, \< 3.4.4-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.3 (Chainguard): \< 18.3.2-r2
- chainguard gitlab-rails-ce-assets-18.3 (Chainguard): \< 18.3.2-r2
- chainguard gitlab-rails-ce-assets-fips-18.3 (Chainguard): \< 18.3.2-r1
- chainguard gitlab-rails-ce-doc-18.3 (Chainguard): \< 18.3.2-r2
- chainguard gitlab-rails-ce-doc-fips-18.3 (Chainguard): \< 18.3.2-r1
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): \< 18.3.2-r1
- chainguard graalvm-24-truffleruby (Chainguard): All versions (No fix recorded)
- chainguard jruby-9.4 (Chainguard): \< 9.4.15.0-r0
- chainguard kube-fluentd-operator (Chainguard): \< 1.18.2-r48
- chainguard kube-fluentd-operator-compat (Chainguard): \< 1.18.2-r48
- chainguard kube-fluentd-operator-default-config (Chainguard): \< 1.18.2-r48
- chainguard kube-fluentd-operator-oci-entrypoint (Chainguard): \< 1.18.2-r48
- chainguard logstash-8.17 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-with-output-opensearch (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5>
- <https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23>
- <https://security.alpinelinux.org/vuln/CVE-2025-58767>
- <https://access.redhat.com/errata/RHSA-2025:23140>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2396186>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_23140.json>
- <https://access.redhat.com/security/cve/CVE-2025-58767>
- <https://www.cve.org/CVERecord?id=CVE-2025-58767>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58767>
- <https://ubuntu.com/security/CVE-2025-58767>
- <https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767/>
- <https://security-tracker.debian.org/tracker/CVE-2025-58767>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58767.json>
- <https://www.suse.com/security/cve/CVE-2025-58767>
- <https://github.com/ruby/rexml>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml>
- <https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767>

---

Data as of 2026-12-05T05:32:48.711Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
