CVE-2022-0436 Path Traversal in gruntjs/grunt
An attacker can exploit a path traversal vulnerability in the Grunt task runner to read or modify arbitrary files on the system.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-0436?
CVE-2022-0436 is a high-severity path traversal vulnerability in gruntjs/grunt, published on 12 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Path Traversal in GitHub repository gruntjs/grunt prior to 1.5.2.
Weakness: CWE-22
Which versions are affected by CVE-2022-0436?
2 open source packages ship an affected version, including grunt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
grunt npm | All versions | 1.5.2 |
grunt npm | All versions | 1.5.2 |
Products include Gruntjs Grunt.
How do I fix CVE-2022-0436?
Upgrade grunt to 1.5.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-0436 being exploited?
There is no known exploitation of CVE-2022-0436 in the wild and no public exploit code.
Other vulnerabilities in gruntjs/grunt
Sources
Also known as AZL-45141, DEBIAN-CVE-2022-0436, DLA-3386-1, GHSA-j383-35pm-c5h4, OESA-2022-1638, UBUNTU-CVE-2022-0436.