CVE-2024-21524: All versions of the package node-stringbuilder are vulnerable to Out-of-bounds Read due to incorrect memory le
CVE-2024-21524 is a high-severity flaw (CVSS 8.2) affecting stringbuilder. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.2 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.9% (top 41%) |
| CISA exploited list | No |
| Weakness | CWE-125 |
| Published | 2024-07-10 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21524?
stringbuilder: upgrade to newer than 2.2.7. Exact commands for each OS are on this page.
Is CVE-2024-21524 being exploited?
CVE-2024-21524 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-21524 affect?
CVE-2024-21524 affects stringbuilder. Severity is high (CVSS 8.2). 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 pos
How urgent is CVE-2024-21524?
Priority 53/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action