# CVE-2023-0242: Insufficient permission check in the VQL copy() function

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-01-18T20:57:30.570Z
- Modified: 2026-06-17T05:25:06.363Z
- Also known as: GHSA-g5vm-525q-r66c, GO-2023-1527
- Weaknesses: CWE-269, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: rapid7

## 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.

(As written by CVE List.)

## Affected

- Velociraptor: before 0.6.7-5
- www.velocidex.com/golang/velociraptor (Go): before 0.6.7-5
- rapid7 velociraptor: before 0.6.7-5

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://docs.velociraptor.app/announcements/2023-cves/#:~:text=to%20upgrade%20clients.-,CVE%2D2023%2D0242,-Insufficient%20Permission%20Check> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-0242> (advisory)
- <https://github.com/Velocidex/velociraptor> (package)
- <https://github.com/advisories/GHSA-g5vm-525q-r66c> (advisory)

## Sources

- CVE List: [CVE-2023-0242](https://www.cve.org/CVERecord?id=CVE-2023-0242), CVE Terms of Use, modified 2025-04-03
- GitHub Advisory Database: [GHSA-g5vm-525q-r66c](https://github.com/advisories/GHSA-g5vm-525q-r66c), CC-BY-4.0, modified 2024-08-20
- Go Vulnerability Database: [GO-2023-1527](https://pkg.go.dev/vuln/GO-2023-1527), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2023-0242](https://nvd.nist.gov/vuln/detail/CVE-2023-0242), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-0242 · Whole record: https://cve.day/CVE-2023-0242.json · Rebuilt by cve.day 2026-11-25T22:58:21.661Z
