{"answers":{"affected":"2 open source packages ship an affected version, including rexml. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-35176 in the wild and no public exploit code.","fix":"Upgrade rexml to 3.2.7 or later.","what":"CVE-2024-35176 is a medium-severity denial of service vulnerability in ruby rexml, published on 16 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35176 and fix it if it is affected.\n\nWhat it is: CVE-2024-35176 is a medium-severity denial of service vulnerability in ruby rexml, published on 16 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-35176 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rexml (RubyGems): affected all versions; fixed in 3.2.7\n- rexml (RubyGems): affected all versions; fixed in 3.2.7\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-2024-35176/ (Markdown: https://insights.sbomify.com/CVE-2024-35176/index.md)","id":"CVE-2024-35176","markdown":"https://insights.sbomify.com/CVE-2024-35176/index.md","name":"CVE-2024-35176","record":{"aliases":["ALSA-2024:5338","AZL-42052","AZL-42064","AZL-42070","AZL-42076","DEBIAN-CVE-2024-35176","ECHO-324a-2fcd-2194","GHSA-vg3r-rm7w-2xgh","MINI-x6v9-jrw8-6vm5","OESA-2024-1824","RHSA-2024:5338","RLSA-2024:5338","UBUNTU-CVE-2024-35176"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby XML library","requires_auth":"none","summary":"An attacker can cause a denial of service by providing XML with many less-than signs in attribute values to applications using the REXML library.","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":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"REXML is an XML toolkit for Ruby. The REXML gem before 3.2.6 has a denial of service vulnerability when it parses an XML that has many `\u003c`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::highavailability","Red Hat:enterprise_linux:8::resilientstorage","Rocky Linux:8","RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2024-12-19","github_poc":1,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-19T19:01:53Z","kind":"github_poc","ref":"https://github.com/SpiralBL0CK/CVE-2024-35176","stars":5,"title":"CVE-2024-35176 poc full"}],"tier":"poc_unverified"},"has_fix":true,"headline":"REXML contains a denial of service vulnerability","id":"CVE-2024-35176","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":9,"n_references":3,"next":{"headline":"Improper Access Control in wazuh-agent","id":"CVE-2024-35177"},"packages":[{"ecosystem":"RubyGems","fixed":["3.2.7"],"introduced":["0"],"last_affected":[],"package":"rexml","purl":null,"source":"GHSA-vg3r-rm7w-2xgh"},{"ecosystem":"RubyGems","fixed":["3.2.7"],"introduced":["0"],"last_affected":[],"package":"rexml","purl":"pkg:gem/rexml","source":"GHSA-vg3r-rm7w-2xgh"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/almalinux/pcs","source":"ALSA-2024:5338"},{"ecosystem":"AlmaLinux:8","fixed":["0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/almalinux/pcs-snmp","source":"ALSA-2024:5338"},{"ecosystem":"Red Hat:enterprise_linux:8::highavailability","fixed":["0:0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2024:5338"},{"ecosystem":"Red Hat:enterprise_linux:8::highavailability","fixed":["0:0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2024:5338"},{"ecosystem":"Red Hat:enterprise_linux:8::resilientstorage","fixed":["0:0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/redhat/pcs","source":"RHSA-2024:5338"},{"ecosystem":"Red Hat:enterprise_linux:8::resilientstorage","fixed":["0:0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs-snmp","purl":"pkg:rpm/redhat/pcs-snmp","source":"RHSA-2024:5338"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.10.18-2.el8_10.1"],"introduced":["0"],"last_affected":[],"package":"pcs","purl":"pkg:rpm/rocky-linux/pcs?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:5338"}],"prev":{"headline":"sshpiper's Enabling of Proxy Protocol without proper feature flagging allows faking source address","id":"CVE-2024-35175"},"products":["rexml"],"published":"2024-05-16","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":1.2,"headline":"REXML has a DoS condition when parsing malformed XML file","id":"CVE-2025-58767","kev_date_added":null,"published":"2025-09-17"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["ruby"]},"summary":"An attacker can cause a denial of service by providing XML with many less-than signs in attribute values to applications using the REXML library.","url":"https://insights.sbomify.com/CVE-2024-35176/"}