{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-21524","published":"2024-07-10T05:15:11.340000Z","last_modified":"2026-06-17T07:09:40.537000Z","status":"Modified","cvss":{"version":"3.1","score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:a:magiclen:stringbuilder:*:*:*:*:*:node.js:*:*","part":"a","vendor":"magiclen","product":"stringbuilder","version_end_including":"2.2.7"}],"cpes_truncated":false,"vendors":["magiclen"],"products":["magiclen/stringbuilder"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01229,"percentile":0.68895,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-g533-xq5w-jmf3","ecosystem":"npm","name":"node-stringbuilder","purl":"pkg:npm/node-stringbuilder","ranges":[{"introduced":"0","last_affected":"2.2.7"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":70,"links":{"html_es":"/es/cve/CVE-2024-21524/","html_en":"/en/cve/CVE-2024-21524/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-21524","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-21524"},"untrusted":{"vendor_name":"Magiclen","product_name":"Stringbuilder","desc_en":"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":[{"untrusted_vendor":"magiclen","untrusted_product":"node-stringbuilder","versions":[]}],"references":[{"url":"https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281","tags":["Broken Link"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617","tags":["Exploit","Third Party Advisory"]}]}}