Skip to content

CVE-2024-21524 node-stringbuilder vulnerable to Out-of-bounds Read

CriticalCVSS 9.1 EPSS 0.87%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
magiclen node-stringbuilder All versions No fix listed No fix yet
magiclen stringbuilder <= 2.2.7 after 2.2.7 Fixed
npm node-stringbuilder(npm) <= 2.2.7 after 2.2.7 Fixed

Affected products

ProductAffected versionsFixed in
npm node-stringbuilder(npm) <= 2.2.7 No fix listed
magiclen node-stringbuilder All versions No fix listed
magiclen stringbuilder <= 2.2.7 No fix listed

References