{"id":"GHSA-g533-xq5w-jmf3","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.","aliases":["CVE-2024-21524"],"modified":"2024-07-10T20:59:36.987396Z","published":"2024-07-10T06:33:52Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-07-10T20:43:35Z","nvd_published_at":"2024-07-10T05:15:11Z","cwe_ids":["CWE-125"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21524"},{"type":"WEB","url":"https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67"},{"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"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617"}],"affected":[{"package":{"name":"node-stringbuilder","ecosystem":"npm","purl":"pkg:npm/node-stringbuilder"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.2.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-g533-xq5w-jmf3/GHSA-g533-xq5w-jmf3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}