CVE-2024-21524
Node-Stringbuilder Out-of-bounds Read Vulnerability
Description
All versions of the package node-stringbuilder are vulnerable to Out-of-bounds Read due to incorrect memory length calculation, by calling ToBuffer, ToString, or CharAt on a StringBuilder object with a non-empty string value input. It's possible to return previously allocated memory, for example, by providing negative indexes, leading to an Information Disclosure.
INFO
Published Date :
July 10, 2024, 5:15 a.m.
Last Modified :
Nov. 21, 2024, 8:54 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.2
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2024-21524 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21524
.
URL | Resource |
---|---|
https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 | Exploit Third Party Advisory |
https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 | Broken Link |
https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 | Exploit Third Party Advisory |
https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 | Exploit Third Party Advisory |
https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 | Broken Link |
https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 | Exploit Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
My personal repository
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21524
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-21524
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 Added Reference https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 Added Reference https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 -
Initial Analysis by [email protected]
Sep. 09, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Changed Reference Type https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 No Types Assigned https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 Exploit, Third Party Advisory Changed Reference Type https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 No Types Assigned https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 Broken Link Changed Reference Type https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 No Types Assigned https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 Exploit, Third Party Advisory Added CWE NIST CWE-125 Added CPE Configuration OR *cpe:2.3:a:magiclen:stringbuilder:*:*:*:*:*:node.js:*:* versions up to (including) 2.2.7 -
CVE Received by [email protected]
Jul. 10, 2024
Action Type Old Value New Value Added Description All versions of the package node-stringbuilder are vulnerable to Out-of-bounds Read due to incorrect memory length calculation, by calling ToBuffer, ToString, or CharAt on a StringBuilder object with a non-empty string value input. It's possible to return previously allocated memory, for example, by providing negative indexes, leading to an Information Disclosure. Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 [No types assigned] Added Reference Snyk https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281 [No types assigned] Added Reference Snyk https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 [No types assigned] Added CWE Snyk CWE-125 Added CVSS V3.1 Snyk AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21524
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21524
weaknesses.