9.1
CRITICAL
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 :

Sept. 9, 2024, 5:36 p.m.

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.

Affected Products

The following products are affected by CVE-2024-21524 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Magiclen stringbuilder
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

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

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : Oct. 6, 2023, 4:45 p.m. This repo has been linked 78 different CVEs too.

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.

  • 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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability