cve-2024-4068
Vulnerability from cvelistv5
Published
2024-05-13 10:06
Modified
2024-11-06 13:10
EPSS score ?
0.47% (0.61596)
Summary
The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
Impacted products
Show details on NVD website


{
   containers: {
      adp: [
         {
            affected: [
               {
                  cpes: [
                     "cpe:2.3:a:micromatch:braces:3.0.3:*:*:*:*:*:*:*",
                  ],
                  defaultStatus: "unknown",
                  product: "braces",
                  vendor: "micromatch",
                  versions: [
                     {
                        lessThan: "3.0.3",
                        status: "affected",
                        version: "0",
                        versionType: "custom",
                     },
                  ],
               },
            ],
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-4068",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "yes",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-05-13T11:10:08.649102Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            problemTypes: [
               {
                  descriptions: [
                     {
                        cweId: "CWE-400",
                        description: "CWE-400 Uncontrolled Resource Consumption",
                        lang: "en",
                        type: "CWE",
                     },
                  ],
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-06-13T20:12:58.696Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
         {
            providerMetadata: {
               dateUpdated: "2024-08-01T20:26:57.297Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://github.com/micromatch/braces/issues/35",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://devhub.checkmarx.com/cve-details/CVE-2024-4068/",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://github.com/micromatch/braces/pull/37",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://github.com/micromatch/braces/pull/40",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff",
               },
            ],
            title: "CVE Program Container",
         },
      ],
      cna: {
         affected: [
            {
               collectionURL: "https://www.npmjs.com/package/micromatch",
               defaultStatus: "unknown",
               packageName: "braces",
               product: "braces",
               programFiles: [
                  "lib/parse.js",
               ],
               repo: "https://github.com/micromatch/braces",
               vendor: "micromatch",
               versions: [
                  {
                     changes: [
                        {
                           at: "3.0.3",
                           status: "unaffected",
                        },
                     ],
                     lessThanOrEqual: "3.0.2",
                     status: "affected",
                     version: "0",
                     versionType: "git",
                  },
               ],
            },
         ],
         credits: [
            {
               lang: "en",
               type: "finder",
               user: "00000000-0000-4000-9000-000000000000",
               value: "Mário Teixeira, Checkmarx Research Group",
            },
         ],
         datePublic: "2024-05-13T12:44:00.000Z",
         descriptions: [
            {
               lang: "en",
               supportingMedia: [
                  {
                     base64: false,
                     type: "text/html",
                     value: "<div><p>The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \"imbalanced braces\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.</p></div>",
                  },
               ],
               value: "The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \"imbalanced braces\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.",
            },
         ],
         metrics: [
            {
               cvssV3_1: {
                  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",
               },
               format: "CVSS",
               scenarios: [
                  {
                     lang: "en",
                     value: "GENERAL",
                  },
               ],
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     cweId: "CWE-1050",
                     description: "CWE-1050: Excessive Platform Resource Consumption within a Loop",
                     lang: "en",
                     type: "CWE",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-11-06T13:10:11.179Z",
            orgId: "596c5446-0ce5-4ba2-aa66-48b3b757a647",
            shortName: "Checkmarx",
         },
         references: [
            {
               url: "https://github.com/micromatch/braces/issues/35",
            },
            {
               url: "https://devhub.checkmarx.com/cve-details/CVE-2024-4068/",
            },
            {
               url: "https://github.com/micromatch/braces/pull/37",
            },
            {
               url: "https://github.com/micromatch/braces/pull/40",
            },
            {
               url: "https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff",
            },
         ],
         solutions: [
            {
               lang: "en",
               supportingMedia: [
                  {
                     base64: false,
                     type: "text/html",
                     value: "Update to version&nbsp;3.0.3 to mitigate the issue.",
                  },
               ],
               value: "Update to version 3.0.3 to mitigate the issue.",
            },
         ],
         source: {
            discovery: "UNKNOWN",
         },
         title: "Memory Exhaustion in braces",
         x_generator: {
            engine: "Vulnogram 0.1.0-dev",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "596c5446-0ce5-4ba2-aa66-48b3b757a647",
      assignerShortName: "Checkmarx",
      cveId: "CVE-2024-4068",
      datePublished: "2024-05-13T10:06:38.152Z",
      dateReserved: "2024-04-23T13:31:17.738Z",
      dateUpdated: "2024-11-06T13:10:11.179Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      fkie_nvd: {
         descriptions: "[{\"lang\": \"en\", \"value\": \"The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \\\"imbalanced braces\\\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.\"}, {\"lang\": \"es\", \"value\": \"El paquete NPM \\\"braces\\\" no limita la cantidad de caracteres que puede manejar, lo que podr\\u00eda provocar agotamiento de la memoria. En `lib/parse.js`, si un usuario malintencionado env\\u00eda \\\"imbalanced braces\\\" como entrada, el an\\u00e1lisis entrar\\u00e1 en un bucle, lo que har\\u00e1 que el programa comience a asignar memoria de mont\\u00f3n sin liberarla en ning\\u00fan momento del bucle. Finalmente, se alcanza el l\\u00edmite del mont\\u00f3n de JavaScript y el programa fallar\\u00e1.\"}]",
         id: "CVE-2024-4068",
         lastModified: "2024-11-21T09:42:07.710",
         metrics: "{\"cvssMetricV31\": [{\"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 7.5, \"baseSeverity\": \"HIGH\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 3.6}]}",
         published: "2024-05-14T15:42:48.660",
         references: "[{\"url\": \"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\", \"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\"}, {\"url\": \"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\", \"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\"}, {\"url\": \"https://github.com/micromatch/braces/issues/35\", \"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\"}, {\"url\": \"https://github.com/micromatch/braces/pull/37\", \"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\"}, {\"url\": \"https://github.com/micromatch/braces/pull/40\", \"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\"}, {\"url\": \"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/micromatch/braces/issues/35\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/micromatch/braces/pull/37\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/micromatch/braces/pull/40\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
         sourceIdentifier: "596c5446-0ce5-4ba2-aa66-48b3b757a647",
         vulnStatus: "Awaiting Analysis",
         weaknesses: "[{\"source\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\", \"type\": \"Secondary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-1050\"}]}, {\"source\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"type\": \"Secondary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-400\"}]}]",
      },
      nvd: "{\"cve\":{\"id\":\"CVE-2024-4068\",\"sourceIdentifier\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\",\"published\":\"2024-05-14T15:42:48.660\",\"lastModified\":\"2024-11-21T09:42:07.710\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \\\"imbalanced braces\\\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.\"},{\"lang\":\"es\",\"value\":\"El paquete NPM \\\"braces\\\" no limita la cantidad de caracteres que puede manejar, lo que podría provocar agotamiento de la memoria. En `lib/parse.js`, si un usuario malintencionado envía \\\"imbalanced braces\\\" como entrada, el análisis entrará en un bucle, lo que hará que el programa comience a asignar memoria de montón sin liberarla en ningún momento del bucle. Finalmente, se alcanza el límite del montón de JavaScript y el programa fallará.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-1050\"}]},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-400\"}]}],\"references\":[{\"url\":\"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\",\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\"},{\"url\":\"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\",\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\"},{\"url\":\"https://github.com/micromatch/braces/issues/35\",\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\"},{\"url\":\"https://github.com/micromatch/braces/pull/37\",\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\"},{\"url\":\"https://github.com/micromatch/braces/pull/40\",\"source\":\"596c5446-0ce5-4ba2-aa66-48b3b757a647\"},{\"url\":\"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/micromatch/braces/issues/35\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/micromatch/braces/pull/37\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/micromatch/braces/pull/40\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/micromatch/braces/issues/35\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/micromatch/braces/pull/37\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/micromatch/braces/pull/40\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-01T20:26:57.297Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-4068\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"yes\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-13T11:10:08.649102Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:micromatch:braces:3.0.3:*:*:*:*:*:*:*\"], \"vendor\": \"micromatch\", \"product\": \"braces\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"3.0.3\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-400\", \"description\": \"CWE-400 Uncontrolled Resource Consumption\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-13T11:12:38.505Z\"}}], \"cna\": {\"title\": \"Memory Exhaustion in braces\", \"source\": {\"discovery\": \"UNKNOWN\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"user\": \"00000000-0000-4000-9000-000000000000\", \"value\": \"M\\u00e1rio Teixeira, Checkmarx Research Group\"}], \"metrics\": [{\"format\": \"CVSS\", \"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"NONE\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"GENERAL\"}]}], \"affected\": [{\"repo\": \"https://github.com/micromatch/braces\", \"vendor\": \"micromatch\", \"product\": \"braces\", \"versions\": [{\"status\": \"affected\", \"changes\": [{\"at\": \"3.0.3\", \"status\": \"unaffected\"}], \"version\": \"0\", \"versionType\": \"git\", \"lessThanOrEqual\": \"3.0.2\"}], \"packageName\": \"braces\", \"programFiles\": [\"lib/parse.js\"], \"collectionURL\": \"https://www.npmjs.com/package/micromatch\", \"defaultStatus\": \"unknown\"}], \"solutions\": [{\"lang\": \"en\", \"value\": \"Update to version\\u00a03.0.3 to mitigate the issue.\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"Update to version&nbsp;3.0.3 to mitigate the issue.\", \"base64\": false}]}], \"datePublic\": \"2024-05-13T12:44:00.000Z\", \"references\": [{\"url\": \"https://github.com/micromatch/braces/issues/35\"}, {\"url\": \"https://devhub.checkmarx.com/cve-details/CVE-2024-4068/\"}, {\"url\": \"https://github.com/micromatch/braces/pull/37\"}, {\"url\": \"https://github.com/micromatch/braces/pull/40\"}, {\"url\": \"https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff\"}], \"x_generator\": {\"engine\": \"Vulnogram 0.1.0-dev\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \\\"imbalanced braces\\\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"<div><p>The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends \\\"imbalanced braces\\\" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.</p></div>\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-1050\", \"description\": \"CWE-1050: Excessive Platform Resource Consumption within a Loop\"}]}], \"providerMetadata\": {\"orgId\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\", \"shortName\": \"Checkmarx\", \"dateUpdated\": \"2024-11-06T13:10:11.179Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-4068\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-06T13:10:11.179Z\", \"dateReserved\": \"2024-04-23T13:31:17.738Z\", \"assignerOrgId\": \"596c5446-0ce5-4ba2-aa66-48b3b757a647\", \"datePublished\": \"2024-05-13T10:06:38.152Z\", \"assignerShortName\": \"Checkmarx\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

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.