CVE-2023-0290: Www.velocidex.com/golang/velociraptor Path Traversal Vulnerability
MODERATECVE-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
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).
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.
Upgrade www.velocidex.com/golang/velociraptor to 0.6.7-5
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
CVE-2023-0290 Affected Www.velocidex.com/golang/velociraptor Versions
1 component(s)| 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?
Which Www.velocidex.com/golang/velociraptor versions are affected?
What version fixes CVE-2023-0290?
Is www.velocidex.com/golang/velociraptor affected?
What is the CVSS score of CVE-2023-0290?
What CWE is associated with CVE-2023-0290?
How can I check Go dependencies for CVE-2023-0290?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}