CVE-2024-4068

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-4068
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-4068.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-4068
Aliases
Related
Published
2024-05-14T15:42:48Z
Modified
2024-10-12T11:27:15.076045Z
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / node-braces

Package

Name
node-braces
Purl
pkg:deb/debian/node-braces?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.2+~3.0.0-1
3.0.2+~3.0.1-1
3.0.3+~3.0.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / node-braces

Package

Name
node-braces
Purl
pkg:deb/debian/node-braces?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.2+~3.0.1-1
3.0.3+~3.0.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-braces

Package

Name
node-braces
Purl
pkg:deb/debian/node-braces?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.2+~3.0.1-1
3.0.3+~3.0.4-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/micromatch/braces

Affected ranges

Type
GIT
Repo
https://github.com/micromatch/braces
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.4

1.*

1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.7.0
1.8.0
1.8.1
1.8.2
1.8.3
1.8.4
1.8.5

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1

3.*

3.0.1
3.0.2