{"id":"CVE-2024-21524","aliases":["GHSA-g533-xq5w-jmf3"],"url":"https://o3.security/vulnerability/CVE-2024-21524","summary":"node-stringbuilder vulnerable to Out-of-bounds Read","details":"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.","published":"2024-07-10T05:00:05.257Z","modified":"2026-08-12T03:51:37.735659626Z","cvss":{"score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"node-stringbuilder","fixedVersion":null}],"fix":null,"references":[{"type":"WEB","url":"https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67"},{"type":"WEB","url":"https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21524.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21524"},{"type":"PACKAGE","url":"https://github.com/magiclen/node-stringbuilder"},{"type":"WEB","url":"https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c#L1281"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:37.735659626Z"}}