{"api_version":"1","generated_at":"2026-04-23T02:38:06+00:00","cve":"CVE-2022-23516","urls":{"html":"https://cve.report/CVE-2022-23516","api":"https://cve.report/api/cve/CVE-2022-23516.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23516","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23516"},"summary":{"title":"CVE-2022-23516","description":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CDATA sections, making it susceptible to stack exhaustion and raising a SystemStackError exception.  This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1. Users who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-14 14:15:00","updated_at":"2023-09-13 17:15:00"},"problem_types":["CWE-674"],"metrics":[],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm","name":"https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm","refsource":"MISC","tags":[],"title":"Uncontrolled Recursion in Loofah · Advisory · flavorjones/loofah · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","name":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","refsource":"MISC","tags":[],"title":"[SECURITY] [DLA 3565-1] ruby-loofah security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23516","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23516","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23516","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"loofah_project","cpe5":"loofah","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-23516","qid":"183670","title":"Debian Security Update for ruby-loofah (CVE-2022-23516)"},{"cve":"CVE-2022-23516","qid":"241405","title":"Red Hat Update for Satellite 6.13 (RHSA-2023:2097)"},{"cve":"CVE-2022-23516","qid":"6000028","title":"Debian Security Update for ruby-loofah (DLA 3565-1)"},{"cve":"CVE-2022-23516","qid":"960924","title":"Rocky Linux Security Update for Satellite (RLSA-2023:2097)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-23516","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CDATA sections, making it susceptible to stack exhaustion and raising a SystemStackError exception.  This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1. Users who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-674: Uncontrolled Recursion","cweId":"CWE-674"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"flavorjones","product":{"product_data":[{"product_name":"loofah","version":{"version_data":[{"version_affected":"=","version_value":">= 2.2.0, < 2.19.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm","refsource":"MISC","name":"https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm"},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html","refsource":"MISC","name":"https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html"}]},"source":{"advisory":"GHSA-3x8r-x6xp-q4vm","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-14 14:15:00","lastModifiedDate":"2023-09-13 17:15:00","problem_types":["CWE-674"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*","versionStartIncluding":"2.2.0","versionEndExcluding":"2.19.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23516","Ordinal":"226352","Title":"CVE-2022-23516","CVE":"CVE-2022-23516","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23516","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}