CVE-2023-0290: Www.velocidex.com/golang/velociraptor Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-7jf5-fvgf-48c6
CVSS 4.3
CWE-22
Published
Advisory Summary

CVE-2023-0290 is a MODERATE (CVSS 4.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Www.velocidex.com/golang/velociraptor libraries in the Go ecosystem. The issue involves velociraptor subject to path traversal. Remediation is available by upgrading affected packages to version 0.6.7-5.

CVE-2023-0290 at a Glance

CVE Identifier CVE-2023-0290
GHSA Identifier GHSA-7jf5-fvgf-48c6
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Www.velocidex.com/golang/velociraptor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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:L/I:N/A:N).

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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-0290

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-0290, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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 did not properly sanitize the client ID parameter to the CreateCollection API, allowing a directory traversal in where the collection task could be written. It was possible to provide a client id of "../clients/server" to schedule the collection for the server (as a server artifact), but only require privileges to schedule collections on the client. Normally, to schedule an artifact on the server, the COLLECT_SERVER permission is required. This permission is normally only granted to "administrator" role. Due to this issue, it is sufficient to have the COLLECT_CLIENT privilege, which is normally granted to the "investigator" role. To exploit this vulnerability, the attacker must already have a Velociraptor user account at least "investigator" level, and be able to authenticate to the GUI and issue an API call to the backend. Typically, most users deploy Velociraptor with limited access to a trusted group, and most users will already be administrators within the GUI. This issue affects Velociraptor versions before 0.6.7-5. Version 0.6.7-5, released January 16, 2023, fixes the issue.

CVE-2023-0290 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-0290?
CVE-2023-0290 is a security vulnerability in Www.velocidex.com/golang/velociraptor involving Velociraptor subject to Path Traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
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-0290?
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-0290?
CVE-2023-0290 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-0290?
CVE-2023-0290 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Go dependencies for CVE-2023-0290?
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-7jf5-fvgf-48c6",
  "modified" : "2023-02-01T01:37:24Z",
  "published" : "2023-01-19T00:30:30Z",
  "aliases" : [ "CVE-2023-0290" ],
  "summary" : "Velociraptor subject to Path Traversal",
  "details" : "Rapid7 Velociraptor did not properly sanitize the client ID parameter to the CreateCollection API, allowing a directory traversal in where the collection task could be written. It was possible to provide a client id of \"../clients/server\" to schedule the collection for the server (as a server artifact), but only require privileges to schedule collections on the client. Normally, to schedule an artifact on the server, the COLLECT_SERVER permission is required. This permission is normally only granted to \"administrator\" role. Due to this issue, it is sufficient to have the COLLECT_CLIENT privilege, which is normally granted to the \"investigator\" role. To exploit this vulnerability, the attacker must already have a Velociraptor user account at least \"investigator\" level, and be able to authenticate to the GUI and issue an API call to the backend. Typically, most users deploy Velociraptor with limited access to a trusted group, and most users will already be administrators within the GUI. 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:L/I:N/A:N"
  } ],
  "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-0290"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Velocidex/velociraptor/commit/4718bb0cb426564568abc77910e90a2c211a32e6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Velocidex/velociraptor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Velocidex/velociraptor/compare/v0.6.7-4...v0.6.7-5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-01T01:37:24Z",
    "nvd_published_at" : "2023-01-18T22:15:00Z"
  }
}