{"answers":{"affected":"2 open source packages ship an affected version, including rexml. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-58767 in the wild and no public exploit code.","fix":"Upgrade rexml to 3.4.2 or later.","what":"CVE-2025-58767 is a low-severity denial of service vulnerability in ruby rexml, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-58767 and fix it if it is affected.\n\nWhat it is: CVE-2025-58767 is a low-severity denial of service vulnerability in ruby rexml, published on 17 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-58767 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rexml (RubyGems): affected from 3.3.3; fixed in 3.4.2\n- rexml (RubyGems): affected from 3.3.3; fixed in 3.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-58767/ (Markdown: https://insights.sbomify.com/CVE-2025-58767/index.md)","id":"CVE-2025-58767","markdown":"https://insights.sbomify.com/CVE-2025-58767/index.md","name":"CVE-2025-58767","record":{"aliases":["ALPINE-CVE-2025-58767","AZL-67611","AZL-67614","BELL-CVE-2025-58767","CLEANSTART-2026-LE84583","CLEANSTART-2026-SZ82695","CLSA-2026-1768814484","DEBIAN-CVE-2025-58767","ECHO-7954-8107-56ba","GHSA-c2f4-jgmc-q2r5","MINI-32f4-q38f-265p","MINI-5f99-r283-2wqp","MINI-5h4w-q34g-h7xr","MINI-6g55-h792-9q8v","MINI-6j48-8p6h-vrc3","MINI-899g-gjvg-6v3r","MINI-8m63-q8qf-32m8","MINI-9m43-p63c-cq92","MINI-c45x-3vgw-5c9v","MINI-f4qj-5987-x4x3","MINI-h2xp-95vc-wm58","MINI-j2vw-xgpx-r8c7","MINI-m86r-qphm-hjq2","MINI-mcmw-6hhq-fqj2","MINI-mcq5-4qg9-w4cg","MINI-qhrq-67q2-75xg","MINI-qrgc-hv33-22vq","MINI-rc45-4v34-5mgr","MINI-w4c2-mq72-v5cx","RHSA-2025:23140","UBUNTU-CVE-2025-58767","openSUSE-SU-2025:15828-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Ruby XML library","requires_auth":"none","summary":"Attackers can cause denial of service in applications using REXML by parsing malformed XML with multiple declarations.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rexml","vendor":"ruby-lang"}],"cvss":{"score":1.2,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"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.","ecosystems":["Red Hat:rhel_eus:9.4::appstream","RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"REXML has a DoS condition when parsing malformed XML file","id":"CVE-2025-58767","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":45,"n_references":2,"next":{"headline":"DeepChat's Mermaid rendering has XSS leading to RCE","id":"CVE-2025-58768"},"packages":[{"ecosystem":"RubyGems","fixed":["3.4.2"],"introduced":["3.3.3"],"last_affected":[],"package":"rexml","purl":null,"source":"GHSA-c2f4-jgmc-q2r5"},{"ecosystem":"RubyGems","fixed":["3.4.2"],"introduced":["3.3.3"],"last_affected":[],"package":"rexml","purl":"pkg:gem/rexml","source":"GHSA-c2f4-jgmc-q2r5"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-bundled-gems","purl":"pkg:rpm/redhat/ruby-bundled-gems","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-bundled-gems-debuginfo","purl":"pkg:rpm/redhat/ruby-bundled-gems-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-debugsource","purl":"pkg:rpm/redhat/ruby-debugsource","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-default-gems","purl":"pkg:rpm/redhat/ruby-default-gems","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-doc","purl":"pkg:rpm/redhat/ruby-doc","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.3.10-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"ruby-libs-debuginfo","purl":"pkg:rpm/redhat/ruby-libs-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.1.5-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal","purl":"pkg:rpm/redhat/rubygem-bigdecimal","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.1.5-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-bigdecimal-debuginfo","purl":"pkg:rpm/redhat/rubygem-bigdecimal-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:2.5.22-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-bundler","purl":"pkg:rpm/redhat/rubygem-bundler","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.7.1-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console","purl":"pkg:rpm/redhat/rubygem-io-console","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.7.1-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-io-console-debuginfo","purl":"pkg:rpm/redhat/rubygem-io-console-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.13.1-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-irb","purl":"pkg:rpm/redhat/rubygem-irb","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:2.7.2-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-json","purl":"pkg:rpm/redhat/rubygem-json","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:2.7.2-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-json-debuginfo","purl":"pkg:rpm/redhat/rubygem-json-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:5.20.0-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-minitest","purl":"pkg:rpm/redhat/rubygem-minitest","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.5.5-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2","purl":"pkg:rpm/redhat/rubygem-mysql2","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.5.5-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2-debuginfo","purl":"pkg:rpm/redhat/rubygem-mysql2-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.5.5-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2-debugsource","purl":"pkg:rpm/redhat/rubygem-mysql2-debugsource","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.5.5-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-mysql2-doc","purl":"pkg:rpm/redhat/rubygem-mysql2-doc","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.5.4-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg","purl":"pkg:rpm/redhat/rubygem-pg","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.5.4-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg-debuginfo","purl":"pkg:rpm/redhat/rubygem-pg-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.5.4-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg-debugsource","purl":"pkg:rpm/redhat/rubygem-pg-debugsource","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.5.4-1.module+el9.4.0+21222+faeeed2f"],"introduced":["0"],"last_affected":[],"package":"rubygem-pg-doc","purl":"pkg:rpm/redhat/rubygem-pg-doc","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:2.0.3-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-power_assert","purl":"pkg:rpm/redhat/rubygem-power_assert","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:5.1.2-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych","purl":"pkg:rpm/redhat/rubygem-psych","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:5.1.2-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-psych-debuginfo","purl":"pkg:rpm/redhat/rubygem-psych-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.7.3-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-racc","purl":"pkg:rpm/redhat/rubygem-racc","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:1.7.3-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-racc-debuginfo","purl":"pkg:rpm/redhat/rubygem-racc-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:13.1.0-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rake","purl":"pkg:rpm/redhat/rubygem-rake","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.4.0-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rbs","purl":"pkg:rpm/redhat/rubygem-rbs","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.4.0-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rbs-debuginfo","purl":"pkg:rpm/redhat/rubygem-rbs-debuginfo","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:6.6.3.1-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rdoc","purl":"pkg:rpm/redhat/rubygem-rdoc","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:3.4.4-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rexml","purl":"pkg:rpm/redhat/rubygem-rexml","source":"RHSA-2025:23140"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["0:0.3.1-5.module+el9.4.0+23769+ab06e946"],"introduced":["0"],"last_affected":[],"package":"rubygem-rss","purl":"pkg:rpm/redhat/rubygem-rss","source":"RHSA-2025:23140"}],"prev":{"headline":"Dyad Vulnerable to Remote Code Execution via Top-level Navigation in Preview Window","id":"CVE-2025-58766"},"products":["rexml"],"published":"2025-09-17","related":[{"cvss_score":5.3,"headline":"REXML DoS vulnerability","id":"CVE-2024-41123","kev_date_added":null,"published":"2024-08-01"},{"cvss_score":5.3,"headline":"REXML DoS vulnerability","id":"CVE-2024-41946","kev_date_added":null,"published":"2024-08-01"},{"cvss_score":5.3,"headline":"REXML contains a denial of service vulnerability","id":"CVE-2024-35176","kev_date_added":null,"published":"2024-05-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-17","vendors":["ruby"]},"summary":"Attackers can cause denial of service in applications using REXML by parsing malformed XML with multiple declarations.","url":"https://insights.sbomify.com/CVE-2025-58767/"}