Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-0242

HIGH 8.8EPSS 49%

Insufficient permission check in the VQL copy() function

Also known as GHSA-g5vm-525q-r66c, GO-2023-1527

Mitigation

  • Upgrade www.velocidex.com/golang/velociraptor to 0.6.7-5 or later.
  • Vendor 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.

Who should check

  • Projects that depend on Go package www.velocidex.com/golang/velociraptor (< 0.6.7-5)
  • Anyone running Rapid7 Velociraptor < 0.6.7-5

Vulnerability facts

Affected
www.velocidex.com/golang/velociraptor < 0.6.7-5
Fixed in
0.6.7-5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
CWE
CWE-269
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go www.velocidex.com/golang/velociraptor< 0.6.7-50.6.7-5osv
Rapid7 Velociraptor< 0.6.7-5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-0242. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-0242.md
Affected: www.velocidex.com/golang/velociraptor < 0.6.7-5
Fixed in: 0.6.7-5

Steps:
1. Search this machine and project for www.velocidex.com/golang/velociraptor (Go), Rapid7 Velociraptor: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-0242 being exploited?

There is no confirmed exploitation: CVE-2023-0242 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-0242?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2023-0242?

www.velocidex.com/golang/velociraptor < 0.6.7-5.

Is there a fix for CVE-2023-0242?

Yes. Fixed in 0.6.7-5. Upgrade www.velocidex.com/golang/velociraptor to 0.6.7-5 or later. Vendor 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.

How do I check if I'm affected by CVE-2023-0242?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors