{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21524","id":"CVE-2024-21524","title":"node-stringbuilder vulnerable to Out-of-bounds Read","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.","descriptionLong":"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","updated":"2026-10-28T02:30:52.772218600Z","reserved":"2023-12-22T12:33:20.122Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["node-stringbuilder"],"affectedProducts":[{"vendor":"n/a","product":"node-stringbuilder","defaultStatus":null,"versions":[{"version":"0","lessThan":"*","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"node-stringbuilder","purl":"pkg:npm/node-stringbuilder","ranges":["<=2.2.7"],"fixed":[],"advisory":"GHSA-g533-xq5w-jmf3"}],"cwes":["CWE-125"],"aliases":["GHSA-g533-xq5w-jmf3"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281","tags":["x_transferred","Broken Link","web"]},{"url":"https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21524.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21524","tags":["advisory"]},{"url":"https://github.com/magiclen/node-stringbuilder","tags":["package"]},{"url":"https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c#L1281","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0087,"epssPercentile":0.59546,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21524","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21524","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21524","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g533-xq5w-jmf3","ok":true,"note":"GHSA-g533-xq5w-jmf3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-21524","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}