Vulnerability · Published Jul 10, 2024 · Assigned by snyk

CVE-2024-21524

High 8.2

In plain English

A high-severity out-of-bounds read in node-stringbuilder. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities).

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.9%top 41.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmnode-stringbuilderno fix listedGHSA-g533-xq5w-jmf3

Affected products (as reported)

VendorProductVersions
n/a node-stringbuilder 0 – before *

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P

References