{"id":"CVE-2023-0242","published":"2023-01-18T20:57:30Z","modified":"2025-04-03T19:51:46Z","title":"Insufficient permission check in the VQL copy() function","vendor":"Rapid7","product":"Velociraptor","tier":"tail","description":{"text":"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.\n\nThe 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.\n\nTo 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).\nThis 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().\n\nThis issue affects Velociraptor versions before 0.6.7-5. Version 0.6.7-5, released January 16, 2023, fixes the issue.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00702,"percentile":0.48815,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://docs.velociraptor.app/announcements/2023-cves/#:~:text=to%20upgrade%20clients.-,CVE%2D2023%2D0242,-Insufficient%20Permission%20Check","tags":["release-notes"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.76},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"rapid7","affectedVersions":[{"vendor":"Rapid7","product":"Velociraptor","versions":["< 0.6.7-5"]}],"fixedVersions":[{"vendor":"Rapid7","product":"Velociraptor","versions":["5"]}],"solutions":{"items":["Upgrade to 0.6.7-5"],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-75","name":"Manipulating Writeable Configuration Files"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-02T15:58:54.468796Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"www.velocidex.com/golang/velociraptor","vulnerableRanges":["<0.6.7-5"],"patched":["0.6.7-5"],"from":["GHSA-g5vm-525q-r66c","GO-2023-1527"],"provenance":"source"}],"summary":{"text":"Rapid7 Velociraptor's VQL copy() function checks permissions when reading files but not when writing them, so it lacks write-permission enforcement on the server. An attacker who already holds a low-privilege Velociraptor account (at least \"analyst\", such as the \"investigator\" role) and can log into the GUI to create a notebook and run a copy() query can overwrite server files, including Velociraptor's configuration files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:35Z"},"euvd":{"id":"EUVD-2023-0469","exploited":false,"provenance":"source"}}