gsd-2022-23514
Vulnerability from gsd
Modified
2022-12-13 00:00
Details
## Summary Loofah `< 2.19.1` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. ## Mitigation Upgrade to Loofah `>= 2.19.1`.
Aliases



{
  "GSD": {
    "alias": "CVE-2022-23514",
    "id": "GSD-2022-23514",
    "references": [
      "https://www.suse.com/security/cve/CVE-2022-23514.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-23514",
        "GHSA-486f-hjj9-9vhh"
      ],
      "details": "## Summary\n\nLoofah `\u003c 2.19.1` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n",
      "id": "GSD-2022-23514",
      "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-486f-hjj9-9vhh"
        },
        {
          "type": "WEB",
          "url": "https://cwe.mitre.org/data/definitions/1333.html"
        },
        {
          "type": "WEB",
          "url": "https://hackerone.com/reports/1684163"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 7.5,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Inefficient Regular Expression Complexity in Loofah"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-23514",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "loofah",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "=",
                          "version_value": "\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 \u003c 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1."
          }
        ]
      },
      "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-1333",
                "lang": "eng",
                "value": "CWE-1333: Inefficient Regular Expression Complexity"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh",
            "refsource": "MISC",
            "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh"
          },
          {
            "name": "https://hackerone.com/reports/1684163",
            "refsource": "MISC",
            "url": "https://hackerone.com/reports/1684163"
          },
          {
            "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-486f-hjj9-9vhh",
        "discovery": "UNKNOWN"
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-23514",
      "cvss_v3": 7.5,
      "date": "2022-12-13",
      "description": "## Summary\n\nLoofah `\u003c 2.19.1` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n",
      "gem": "loofah",
      "ghsa": "486f-hjj9-9vhh",
      "patched_versions": [
        "\u003e= 2.19.1"
      ],
      "related": {
        "url": [
          "https://cwe.mitre.org/data/definitions/1333.html",
          "https://hackerone.com/reports/1684163"
        ]
      },
      "title": "Inefficient Regular Expression Complexity in Loofah",
      "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c2.19.1",
          "affected_versions": "All versions 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-1333",
            "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 \u003c 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1.",
          "fixed_versions": [
            "2.19.1"
          ],
          "identifier": "CVE-2022-23514",
          "identifiers": [
            "CVE-2022-23514",
            "GHSA-486f-hjj9-9vhh",
            "GMS-2022-8289"
          ],
          "not_impacted": "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": "Inefficient Regular Expression Complexity",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-23514",
            "https://hackerone.com/reports/1684163",
            "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh",
            "https://github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143",
            "https://github.com/advisories/GHSA-486f-hjj9-9vhh"
          ],
          "uuid": "b4225995-1d33-4207-815b-c93f3906339e"
        },
        {
          "affected_range": "\u003c0",
          "affected_versions": "All versions before 2.19.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-12-13",
          "description": "## Summary\n\nLoofah `\u003c 2.19.1` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. 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\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-1333: Inefficient Regular Expression Complexity (4.9)](https://cwe.mitre.org/data/definitions/1333.html)\n- https://hackerone.com/reports/1684163\n\n\n## Credit\n\nThis vulnerability was responsibly reported by @ooooooo-q (https://github.com/ooooooo-q).\n",
          "fixed_versions": [
            "2.19.1"
          ],
          "identifier": "GMS-2022-8289",
          "identifiers": [
            "GHSA-486f-hjj9-9vhh",
            "GMS-2022-8289",
            "CVE-2022-23514"
          ],
          "not_impacted": "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-23514.yml",
          "urls": [
            "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh",
            "https://github.com/flavorjones/loofah/commit/a6e0a1ab90675a17b1b2be189129d94139e4b143",
            "https://github.com/advisories/GHSA-486f-hjj9-9vhh"
          ],
          "uuid": "20c77605-9e08-492f-8b0a-27f75b17d0f7"
        }
      ]
    },
    "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",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-23514"
        },
        "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 \u003c 2.19.1 contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-1333"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://hackerone.com/reports/1684163",
              "refsource": "MISC",
              "tags": [
                "Permissions Required",
                "Third Party Advisory"
              ],
              "url": "https://hackerone.com/reports/1684163"
            },
            {
              "name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-486f-hjj9-9vhh"
            },
            {
              "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"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...
  • 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.