gsd-2022-23516
Vulnerability from gsd
Modified
2022-12-13 00:00
Details
## Summary
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.
## Mitigation
Upgrade to Loofah `>= 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.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2022-23516", "id": "GSD-2022-23516", "references": [ "https://www.suse.com/security/cve/CVE-2022-23516.html" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "affected": [ { "package": { "ecosystem": "RubyGems", "name": "loofah", "purl": "pkg:gem/loofah" } } ], "aliases": [ "CVE-2022-23516", "GHSA-3x8r-x6xp-q4vm" ], "details": "## Summary\n\nLoofah `\u003e= 2.2.0, \u003c 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.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n\nUsers who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.\n", "id": "GSD-2022-23516", "modified": "2022-12-13T00:00:00.000Z", "published": "2022-12-13T00:00:00.000Z", "references": [ { "type": "WEB", "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm" }, { "type": "WEB", "url": "https://cwe.mitre.org/data/definitions/674.html" } ], "schema_version": "1.4.0", "severity": [ { "score": 7.5, "type": "CVSS_V3" } ], "summary": "Uncontrolled Recursion in Loofah" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-23516", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "loofah", "version": { "version_data": [ { "version_affected": "=", "version_value": "\u003e= 2.2.0, \u003c 2.19.1" } ] } } ] }, "vendor_name": "flavorjones" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "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 \u003e= 2.2.0, \u003c 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." } ] }, "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" } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "cweId": "CWE-674", "lang": "eng", "value": "CWE-674: Uncontrolled Recursion" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm", "refsource": "MISC", "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm" }, { "name": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html", "refsource": "MISC", "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html" } ] }, "source": { "advisory": "GHSA-3x8r-x6xp-q4vm", "discovery": "UNKNOWN" } }, "github.com/rubysec/ruby-advisory-db": { "cve": "2022-23516", "cvss_v3": 7.5, "date": "2022-12-13", "description": "## Summary\n\nLoofah `\u003e= 2.2.0, \u003c 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.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n\nUsers who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.\n", "gem": "loofah", "ghsa": "3x8r-x6xp-q4vm", "patched_versions": [ "\u003e= 2.19.1" ], "related": { "url": [ "https://cwe.mitre.org/data/definitions/674.html" ] }, "title": "Uncontrolled Recursion in Loofah", "unaffected_versions": [ "\u003c 2.2.0" ], "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm" }, "gitlab.com": { "advisories": [ { "affected_range": "\u003e=2.2.0 \u003c2.19.1", "affected_versions": "All versions starting from 2.2.0 before 2.19.1", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "cwe_ids": [ "CWE-1035", "CWE-674", "CWE-937" ], "date": "2022-12-19", "description": "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.2.0, \u003c 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.", "fixed_versions": [ "2.19.1" ], "identifier": "CVE-2022-23516", "identifiers": [ "CVE-2022-23516", "GHSA-3x8r-x6xp-q4vm", "GMS-2022-8288" ], "not_impacted": "All versions before 2.2.0, all versions starting from 2.19.1", "package_slug": "gem/loofah", "pubdate": "2022-12-14", "solution": "Upgrade to version 2.19.1 or above.", "title": "Uncontrolled Recursion", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2022-23516", "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm", "https://github.com/flavorjones/loofah/commit/86f7f6364491b0099d215db858ecdc0c89ded040", "https://github.com/advisories/GHSA-3x8r-x6xp-q4vm" ], "uuid": "78243509-b1f6-4a0c-88f7-db1644f0be78" }, { "affected_range": "\u003c0", "affected_versions": "All versions starting from 2.2.0 before 2.19.1", "cwe_ids": [ "CWE-1035", "CWE-937" ], "date": "2022-12-13", "description": "## Summary\n\nLoofah `\u003e= 2.2.0, \u003c 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.\n\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n\nUsers who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.\n\n\n## Severity\n\nThe Loofah maintainers have evaluated this as [High Severity 7.5 (CVSS3.1)](https://www.first.org/cvss/calculator/3.1#.\n\n\n## References\n\n- [CWE - CWE-674: Uncontrolled Recursion (4.9)](https://cwe.mitre.org/data/definitions/674.html)\n", "fixed_versions": [ "2.19.1" ], "identifier": "GMS-2022-8288", "identifiers": [ "GHSA-3x8r-x6xp-q4vm", "GMS-2022-8288", "CVE-2022-23516" ], "not_impacted": "All versions before 2.2.0, all versions starting from 2.19.1", "package_slug": "gem/loofah", "pubdate": "2022-12-13", "solution": "Upgrade to version 2.19.1 or above.", "title": "Duplicate of ./gem/loofah/CVE-2022-23516.yml", "urls": [ "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm", "https://github.com/flavorjones/loofah/commit/86f7f6364491b0099d215db858ecdc0c89ded040", "https://github.com/advisories/GHSA-3x8r-x6xp-q4vm" ], "uuid": "336730ac-2f65-4904-ba41-f42bd6536321" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*", "cpe_name": [], "versionEndExcluding": "2.19.1", "versionStartIncluding": "2.2.0", "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-23516" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.2.0, \u003c 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": "en", "value": "CWE-674" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm", "refsource": "MISC", "tags": [ "Third Party Advisory" ], "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-3x8r-x6xp-q4vm" }, { "name": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html", "refsource": "MISC", "tags": [], "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html" } ] } }, "impact": { "baseMetricV3": { "cvssV3": { "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" }, "exploitabilityScore": 3.9, "impactScore": 3.6 } }, "lastModifiedDate": "2023-09-13T17:15Z", "publishedDate": "2022-12-14T14:15Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.