Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Magiclen | Stringbuilder | <= 2.2.7 |
Related Weaknesses (CWE)
References
- https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67ExploitThird Party Advisory
- https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e07760Broken Link
- https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617ExploitThird Party Advisory
- https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67ExploitThird Party Advisory
- https://github.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e07760Broken Link
- https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617ExploitThird Party Advisory
FAQ
What is CVE-2024-21524?
CVE-2024-21524 is a vulnerability with a CVSS score of 8.2 (HIGH). 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 ...
How severe is CVE-2024-21524?
CVE-2024-21524 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21524?
Check the references section above for vendor advisories and patch information. Affected products include: Magiclen Stringbuilder.