GSD-2022-25918

Vulnerability from gsd - Updated: 2023-12-13 01:19
Details
The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2022-25918",
    "description": "The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.",
    "id": "GSD-2022-25918"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2022-25918"
      ],
      "details": "The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.",
      "id": "GSD-2022-25918",
      "modified": "2023-12-13T01:19:26.914151Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2022-10-27T05:00:01.622197Z",
        "ID": "CVE-2022-25918",
        "STATE": "PUBLIC",
        "TITLE": "Regular Expression Denial of Service (ReDoS)"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "shescape",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003e=",
                          "version_value": "1.5.10"
                        },
                        {
                          "version_affected": "\u003c",
                          "version_value": "1.6.1"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "credit": [
        {
          "lang": "eng",
          "value": "Elliot Ward - Snyk Research Team"
        }
      ],
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "LOW",
          "attackVector": "NETWORK",
          "availabilityImpact": "LOW",
          "baseScore": 5.3,
          "baseSeverity": "MEDIUM",
          "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:L",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "Regular Expression Denial of Service (ReDoS)"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108",
            "refsource": "MISC",
            "url": "https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108"
          },
          {
            "name": "https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52",
            "refsource": "MISC",
            "url": "https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52"
          },
          {
            "name": "https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9",
            "refsource": "MISC",
            "url": "https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9"
          },
          {
            "name": "https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1",
            "refsource": "MISC",
            "url": "https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1"
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "=1.5.10||=1.6.0",
          "affected_versions": "Version 1.5.10, version 1.6.0",
          "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": "2023-08-08",
          "description": "The package shescape from 1.5.10 and before 1.6.1 is vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.",
          "fixed_versions": [
            "1.6.1"
          ],
          "identifier": "CVE-2022-25918",
          "identifiers": [
            "CVE-2022-25918",
            "GHSA-cr84-xvw4-qx3c",
            "GMS-2022-5891"
          ],
          "not_impacted": "All versions before 1.5.10, all versions after 1.5.10 before 1.6.0, all versions after 1.6.0",
          "package_slug": "npm/shescape",
          "pubdate": "2022-10-27",
          "solution": "Upgrade to version 1.6.1 or above.",
          "title": "Inefficient Regular Expression Complexity",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-25918",
            "https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52",
            "https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9",
            "https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1",
            "https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108",
            "https://github.com/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c",
            "https://github.com/advisories/GHSA-cr84-xvw4-qx3c"
          ],
          "uuid": "afbcddc9-3fd8-4787-8d78-d56aca5ccdb7"
        },
        {
          "affected_range": "\u003c0",
          "affected_versions": "All versions starting from 1.5.10 before 1.6.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-10-26",
          "description": "This impacts users that use shescape to escape arguments: for the Unix shell Bash, or any not-officially-supported Unix shell; using the `escape` or `escapeAll` functions with the `interpolation` option set to `true`.",
          "fixed_versions": [
            "1.6.1"
          ],
          "identifier": "GMS-2022-5891",
          "identifiers": [
            "GHSA-cr84-xvw4-qx3c",
            "GMS-2022-5891",
            "CVE-2022-25918"
          ],
          "not_impacted": "All versions before 1.5.10, all versions starting from 1.6.1",
          "package_slug": "npm/shescape",
          "pubdate": "2022-10-25",
          "solution": "Upgrade to version 1.6.1 or above.",
          "title": "Duplicate of ./npm/shescape/CVE-2022-25918.yml",
          "urls": [
            "https://github.com/ericcornelissen/shescape/security/advisories/GHSA-cr84-xvw4-qx3c",
            "https://github.com/advisories/GHSA-cr84-xvw4-qx3c"
          ],
          "uuid": "ec68d830-8a69-4419-a89a-4c9384cbed20"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "report@snyk.io",
          "ID": "CVE-2022-25918"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "NVD-CWE-Other"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52",
              "refsource": "MISC",
              "tags": [
                "Broken Link"
              ],
              "url": "https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52"
            },
            {
              "name": "https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9"
            },
            {
              "name": "https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1",
              "refsource": "MISC",
              "tags": [
                "Release Notes",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1"
            },
            {
              "name": "https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108"
            }
          ]
        }
      },
      "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": "2022-10-28T19:41Z",
      "publishedDate": "2022-10-27T10:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…