CVE-2022-1537
Last modified
CVE-2022-1537 is a high-severity vulnerability rated 7/10 on the CVSS scale. file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local privilege escalation to the GruntJS user if a lower-privileged user has write access to both source and destination directories as the lower-privileged user can create a symlink to the GruntJS user's .bashrc file or replace /etc/shadow file if the GruntJS user is root.. EPSS estimates a 0.30% chance of exploitation in the next 30 days.
Description
file.copy operations in GruntJS are vulnerable to a TOCTOU race condition leading to arbitrary file write in GitHub repository gruntjs/grunt prior to 1.5.3. This vulnerability is capable of arbitrary file writes which can lead to local privilege escalation to the GruntJS user if a lower-privileged user has write access to both source and destination directories as the lower-privileged user can create a symlink to the GruntJS user's .bashrc file or replace /etc/shadow file if the GruntJS user is root.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gruntjs | Grunt | < 1.5.3 |
References
- https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362baePatch, Technical Description
- https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4dExploit, Issue Tracking, Patch, Technical Description
- https://github.com/gruntjs/grunt/commit/58016ffac5ed9338b63ecc2a63710f5027362baePatch, Technical Description
- https://huntr.dev/bounties/0179c3e5-bc02-4fc9-8491-a1a319b51b4dExploit, Issue Tracking, Patch, Technical Description
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-1537?
How severe is CVE-2022-1537?
How do I fix CVE-2022-1537?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-1530Cross-site Scripting (XSS) in GitHub repository livehelperch…6.1
- CVE-2022-1531SQL injection vulnerability in ARAX-UI Synonym Lookup functi…9.8
- CVE-2022-1532Themify WordPress plugin before 1.3.8 does not sanitise and …6.1
- CVE-2022-1533Buffer Over-read in GitHub repository bfabiszewski/libmobi p…7.8
- CVE-2022-1534Buffer Over-read at parse_rawml.c:1416 in GitHub repository …7.1
- CVE-2022-1536A vulnerability has been found in automad up to 1.10.9 and c…5.4
- CVE-2022-1538Theme Demo Import WordPress plugin before 1.1.1 does not val…7.2
- CVE-2022-1539The Exports and Reports WordPress plugin before 0.9.2 does n…8.8
- CVE-2022-1540The PostmagThemes Demo Import WordPress plugin through 1.0.7…7.2
- CVE-2022-1541The Video Slider WordPress plugin before 1.4.8 does not sani…4.8
- CVE-2022-1542The HPB Dashboard WordPress plugin through 1.3.1 does not sa…4.8
- CVE-2022-1543Improper handling of Length parameter in GitHub repository e…8.8
Are you affected by CVE-2022-1537?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
