CVE-2023-0242

Insufficient permission check in the VQL copy() function

Description

Rapid7 Velociraptor allows users to be created with different privileges on the server. Administrators are generally allowed to run any command on the server including writing arbitrary files. However, lower privilege users are generally forbidden from writing or modifying files on the server. The VQL copy() function applies permission checks for reading files but does not check for permission to write files. This allows a low privilege user (usually, users with the Velociraptor "investigator" role) to overwrite files on the server, including Velociraptor configuration files. To exploit this vulnerability, the attacker must already have a Velociraptor user account at a low privilege level (at least "analyst") and be able to log into the GUI and create a notebook where they can run the VQL query invoking the copy() VQL function. Typically, most users deploy Velociraptor with limited access to a trusted group (most users will be administrators within the GUI). This vulnerability is associated with program files https://github.Com/Velocidex/velociraptor/blob/master/vql/filesystem/copy.go https://github.Com/Velocidex/velociraptor/blob/master/vql/filesystem/copy.go and program routines copy(). This issue affects Velociraptor versions before 0.6.7-5. Version 0.6.7-5, released January 16, 2023, fixes the issue.

Remediation

Solution:

  • Upgrade to 0.6.7-5

Workaround:

  • A valid workaround is to prevent the copy function in the Velociraptor allow list: 1. In the configuration wizard answer yes to the question "Do you want to restrict VQL functionality on the server?" 2. This will add a default allow list to the configuration file. 3. Copy this allow list to your existing server.config.yaml 4. Ensure the "copy" function is removed from the default allow list.

Categories

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.21%
Vendor Advisory velociraptor.app
Affected: Rapid7 Velociraptor
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-0242?
CVE-2023-0242 has been scored as a high severity vulnerability.
How to fix CVE-2023-0242?
To fix CVE-2023-0242: Upgrade to 0.6.7-5
Is CVE-2023-0242 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-0242 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-0242?
CVE-2023-0242 affects Rapid7 Velociraptor.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.