Out-of-bounds Read in Magiclen Stringbuilder
CVE-2024-21524
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H.
EPSS exploit prediction
EPSS 0.009, 59.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Magiclen Stringbuilder
- Node-Stringbuilder — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (dellalibera/dellalibera, fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617 (Exploit, Third Party Advisory)
- github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5… (Broken Link)
- gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67 (Exploit, Third Party Advisory)