CVE-2023-0242: Www.velocidex.com/golang/velociraptor Velociraptor Vulnerable To Missing Authorization Vulnerability

HIGH
Advisory Identifier: GHSA-g5vm-525q-r66c
CVSS 8.8
CWE-269 CWE-862
Published
Advisory Summary

CVE-2023-0242 is a HIGH (CVSS 8.8) velociraptor vulnerable to missing authorization vulnerability (CWE-269: Improper Privilege Management) affecting Www.velocidex.com/golang/velociraptor libraries in the Go ecosystem. The issue involves velociraptor vulnerable to missing authorization. Remediation is available by upgrading affected packages to version 0.6.7-5.

CVE-2023-0242 at a Glance

CVE Identifier CVE-2023-0242
GHSA Identifier GHSA-g5vm-525q-r66c
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-269: Improper Privilege Management
Affected Product Www.velocidex.com/golang/velociraptor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-0242

To remediate this vulnerability, upgrade all affected Www.velocidex.com/golang/velociraptor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

www.velocidex.com/golang/velociraptor fixed: 0.6.7-5
Upgrade www.velocidex.com/golang/velociraptor to 0.6.7-5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for www.velocidex.com/golang/velociraptor

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-0242, inspect your project dependencies for Www.velocidex.com/golang/velociraptor:

inspect dependencies for www.velocidex.com/golang/velociraptor

Analyze the terminal output to locate any version of Www.velocidex.com/golang/velociraptor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.7-5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Www.velocidex.com/golang/velociraptor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2023-0242 Affected Www.velocidex.com/golang/velociraptor Versions

1 component(s)
Fixed Versions:
0.6.7-5
Product / Package Ecosystem Affected Versions Fixed Version
www.velocidex.com/golang/velociraptor
Go
< 0.6.7-5
0.6.7-5

References

Frequently Asked Questions

What is CVE-2023-0242?
CVE-2023-0242 is a security vulnerability in Www.velocidex.com/golang/velociraptor involving Velociraptor vulnerable to Missing Authorization under CWE-269: Improper Privilege Management.
Which Www.velocidex.com/golang/velociraptor versions are affected?
Affected versions include releases prior to 0.6.7-5 across affected packages: www.velocidex.com/golang/velociraptor.
What version fixes CVE-2023-0242?
Upgrading to 0.6.7-5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is www.velocidex.com/golang/velociraptor affected?
Yes, www.velocidex.com/golang/velociraptor is affected in releases prior to 0.6.7-5. Upgrade your dependency to 0.6.7-5 or later.
What is the CVSS score of CVE-2023-0242?
CVE-2023-0242 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-0242?
CVE-2023-0242 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2023-0242?
Run the dependency tree command: 'inspect dependencies for www.velocidex.com/golang/velociraptor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g5vm-525q-r66c",
  "modified" : "2023-02-01T01:37:19Z",
  "published" : "2023-01-18T21:30:21Z",
  "aliases" : [ "CVE-2023-0242" ],
  "summary" : "Velociraptor vulnerable to Missing Authorization",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "www.velocidex.com/golang/velociraptor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.7-5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0242"
  }, {
    "type" : "WEB",
    "url" : "https://docs.velociraptor.app/announcements/2023-cves/#:~:text=to%20upgrade%20clients.-,CVE%2D2023%2D0242,-Insufficient%20Permission%20Check"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Velocidex/velociraptor"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-01T01:37:19Z",
    "nvd_published_at" : "2023-01-18T21:15:00Z"
  }
}