CVE-2024-4068
CVE-2024-4068 · Memory Exhaustion in braces
CVSS 7.5 · High · EPSS 1.8% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- bracesUpdate to 3.0.3
- node-braces Debian 12No fix published
- node-braces Debian 13Update to 3.0.3+~3.0.4-1
- node-braces Debian 14Update to 3.0.3+~3.0.4-1
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-braces"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:01326-1 · SUSE Linux Enterprise Module for Python 3 15 SP6 ·
- SUSE-SU-2025:1326-1 · SUSE Enterprise Storage 7.1, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Python 3 15 SP6, SUSE Linux Enterprise Server 15 SP3-LTSS, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP3, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Manager Proxy 4.3, SUSE Manager Server 4.3 ·
- openSUSE-SU-2025:14663-1 · openSUSE Tumbleweed ·
- SUSE-SU-2024:3771-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Python 3 15 SP6 ·
- RHSA-2024:8077 · Red Hat jboss enterprise application platform 7.4 el9 ·
- RHSA-2024:8075 · Red Hat jboss enterprise application platform 7.4 el7 ·
- RHSA-2024:8076 · Red Hat jboss enterprise application platform 7.4 el8 ·
- openSUSE-SU-2024:14257-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:14258-1 · openSUSE Tumbleweed ·
Affected products and versions
braces
- Versions
- ≥ 0, ≤ 3.0.2: Affected; ≥ 3.0.3: Not affected (git)
Update to 3.0.3
node-braces Debian 12
- Versions
- 3.0.2+~3.0.1-1
- 3.0.3+~3.0.4-1
- 3.0.3+~3.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Debian 13
- Affected ranges
- ECOSYSTEM: < 3.0.3+~3.0.4-1
Update to 3.0.3+~3.0.4-1
node-braces Debian 14
- Affected ranges
- ECOSYSTEM: < 3.0.3+~3.0.4-1
Update to 3.0.3+~3.0.4-1
braces npm
- Affected ranges
- SEMVER: < 3.0.3
Update to 3.0.3
node-braces Ubuntu 18.04 LTS
- Versions
- 2.0.2-1
- 2.0.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 20.04 LTS
- Versions
- 3.0.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 22.04 LTS
- Versions
- 3.0.2+~3.0.0-1
- 3.0.2+~3.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 24.04 LTS
- Versions
- 3.0.2+~3.0.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 25.10
- Versions
- 3.0.3+~3.0.4-1
- 3.0.3+~3.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 26.10
- Versions
- 3.0.3+~3.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-braces Ubuntu 26.04 LTS
- Versions
- 3.0.3+~3.0.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/micromatch/braces/issues/35
- https://devhub.checkmarx.com/cve-details/CVE-2024-4068/
- https://github.com/micromatch/braces/pull/37
- https://github.com/micromatch/braces/pull/40
- https://github.com/micromatch/braces/commit/415d660c3002d1ab7e63dbf490c9851da80596ff
- https://nvd.nist.gov/vuln/detail/CVE-2024-4068