Paper/Archive/CVE-2024-21524

CVE-2024-21524

magiclen node-stringbuilder — All versions of the package node-stringbuilder are vulnerable to Out-of-bounds Read due to incorrect memory length calculation, by callin…

Description · from the CVE record

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

ProductAffectedFixed inSource
node-stringbuilderall versions–CNA
node-stringbuilderall versions–CISA-ADP

Scores by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
snyk (CNA)8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H/E:P
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: partial

References

refsecurity.snyk.io/vuln/SNYK-JS-NODESTRINGBUILDER-6421617refgithub.com/magiclen/node-stringbuilder/blob/5c2797d3d6bf8cb6d10fe1e077609cef9a5a7de0/src/node-stringbuilder.c%23L1281refgist.github.com/dellalibera/0bb022811224f81d998fa61c3175ee67