CVE-2024-27088: Es5 ext Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-4gmj-3p3h-gm8h
CWE-1333
Published
Advisory Summary

CVE-2024-27088 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Es5 ext libraries in the npm ecosystem. The issue involves es5-ext vulnerable to regular expression denial of service in `function#copy` and `function#tostringtokens`. Remediation is available by upgrading affected packages to version 0.10.63.

CVE-2024-27088 at a Glance

CVE Identifier CVE-2024-27088
GHSA Identifier GHSA-4gmj-3p3h-gm8h
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Es5 ext
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2024-27088

To remediate this vulnerability, upgrade all affected Es5 ext dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

es5-ext fixed: 0.10.63
npm install es5-ext@0.10.63
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls es5-ext

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-27088, inspect your project dependencies using npm:

npm ls es5-ext

Analyze the terminal output to locate any version of Es5 ext in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.63), your application is affected.

Note: The npm ls es5-ext command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Es5 ext, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Passing functions with very long names or complex default argument names into `function#copy` or`function#toStringTokens` may put script to stall ### Patches Fixed with https://github.com/medikoo/es5-ext/commit/3551cdd7b2db08b1632841f819d008757d28e8e2 and https://github.com/medikoo/es5-ext/commit/a52e95736690ad1d465ebcd9791d54570e294602 Published with v0.10.63 ### Workarounds No real workaround aside of refraining from using above utilities. ### References https://github.com/medikoo/es5-ext/issues/201

CVE-2024-27088 Affected Es5 ext Versions

1 component(s)
Fixed Versions:
0.10.63
Product / Package Ecosystem Affected Versions Fixed Version
es5-ext
npm
≥ 0.10.0
< 0.10.63
0.10.63

References

Frequently Asked Questions

What is CVE-2024-27088?
CVE-2024-27088 is a security vulnerability in Es5 ext involving es5-ext vulnerable to Regular Expression Denial of Service in `function#copy` and `function#toStringTokens` under CWE-1333: Inefficient Regular Expression Complexity.
Which Es5 ext versions are affected?
Affected versions include releases prior to 0.10.63 across affected packages: es5-ext.
What version fixes CVE-2024-27088?
Upgrading to 0.10.63 (or the latest patched release for your respective branch) resolves the vulnerability.
Is es5-ext affected?
Yes, es5-ext is affected in releases prior to 0.10.63. Upgrade your dependency to 0.10.63 or later.
What CWE is associated with CVE-2024-27088?
CVE-2024-27088 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2024-27088?
Run the dependency tree command: 'npm ls es5-ext'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4gmj-3p3h-gm8h",
  "modified" : "2024-02-26T20:01:28Z",
  "published" : "2024-02-26T20:01:28Z",
  "aliases" : [ "CVE-2024-27088" ],
  "summary" : "es5-ext vulnerable to Regular Expression Denial of Service in `function#copy` and `function#toStringTokens`",
  "details" : "### Impact\n\nPassing functions with very long names or complex default argument names into `function#copy` or`function#toStringTokens` may put script to stall\n\n### Patches\nFixed with https://github.com/medikoo/es5-ext/commit/3551cdd7b2db08b1632841f819d008757d28e8e2 and https://github.com/medikoo/es5-ext/commit/a52e95736690ad1d465ebcd9791d54570e294602\nPublished with v0.10.63\n\n### Workarounds\nNo real workaround aside of refraining from using above utilities.\n\n### References\nhttps://github.com/medikoo/es5-ext/issues/201\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "es5-ext"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.0"
      }, {
        "fixed" : "0.10.63"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/medikoo/es5-ext/security/advisories/GHSA-4gmj-3p3h-gm8h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27088"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/medikoo/es5-ext/issues/201"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/medikoo/es5-ext/commit/3551cdd7b2db08b1632841f819d008757d28e8e2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/medikoo/es5-ext/commit/a52e95736690ad1d465ebcd9791d54570e294602"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/medikoo/es5-ext"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-26T20:01:28Z",
    "nvd_published_at" : "2024-02-26T17:15:11Z"
  }
}