cve/2024/CVE-2024-21524.md
2024-08-05 18:41:32 +00:00

19 lines
973 B
Markdown

### [CVE-2024-21524](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21524)
![](https://img.shields.io/static/v1?label=Product&message=node-stringbuilder&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%20*%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Out-of-bounds%20Read&color=brighgreen)
### 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.
### POC
#### Reference
- https://gist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67
- https://security.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617
#### Github
- https://github.com/dellalibera/dellalibera