CVE-2022-35631 Filesystem race on temporary files
An attacker can exploit a race condition in temporary file handling to overwrite arbitrary files via symlink attacks on MacOS and Linux.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-35631?
CVE-2022-35631 is a medium-severity vulnerability in Rapid7 Velociraptor, published on 29 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
On MacOS and Linux, it may be possible to perform a symlink attack by replacing this predictable file name with a symlink to another file and have the Velociraptor client overwrite the other file. This issue was resolved in Velociraptor 0.6.5-2.
Which versions are affected by CVE-2022-35631?
It affects 1 product.
Products include Rapid7 Velociraptor.
How do I fix CVE-2022-35631?
No fix has been published for CVE-2022-35631 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-35631 being exploited?
There is no known exploitation of CVE-2022-35631 in the wild and no public exploit code.
Other vulnerabilities in Rapid7 Velociraptor
- CVE-2023-0242 Insufficient permission check in the VQL copy() function
- CVE-2023-5950 Rapid7 Velociraptor Reflected XSS
- CVE-2026-5329 Rapid7 Velociraptor Improper Input Validation in Client Message Handler
- CVE-2026-6290 Velociraptor Query() Plugin Misapplies Permissions To Orgs
- CVE-2025-14728 Rapid7 Velociraptor Directory Traversal Vulnerability
Sources
Also known as GHSA-3wmf-q566-h69q.