CVE-2026-8795

YAML Injection in Velociraptor Remapping Allows Arbitrary VQL Execution

Published Jun 9, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
A YAML injection vulnerability exists in the Windows.Collectors.Remapping artifact of Rapid7 Velociraptor before version 0.76.6. The hostname field in client_info.json inside a collection ZIP is inserted into a YAML template via Go's text/template without escaping. An attacker providing a crafted collection ZIP can leverage literal double quotes and newlines in the hostname to break out of the YAML quoted string and inject a new mount remapping entry. When an analyst applies the generated remapping file with --remap, arbitrary VQL executes on their machine with NullACLManager (all permissions granted, unsandboxed).

Analysis

AI-generated

Technical impact

Rapid7 Velociraptor’s Windows.Collectors.Remapping artifact had a YAML injection flaw that allowed an attacker to insert malicious YAML content into a collection ZIP’s client_info.json hostname field. The Go text/template engine rendered the hostname without escaping, so the attacker could break out of a quoted string and inject a new mount remapping entry. When an analyst applies the malicious remapping file with the --remap option, the embedded VQL code is executed under the NullACLManager, granting the attacker unrestricted control over the analyst’s machine.

Affected Systems

This issue affects Rapid7 Velociraptor deployments running before version 0.76.6 on Windows systems that use the Remapping artifact for mount configuration. Only the Windows.Collectors.Remapping component is vulnerable; sysadmins must verify their cluster membership configuration and the version of Velociraptor in use.

Risk and Exploitability

The vulnerability has a CVSS score of 7.8, indicating high severity, but its EPSS score is not available, so current exploitation probability is unclear. It is not yet listed in the CISA KEV catalog, suggesting no confirmed public exploitation. The likely attack vector requires an attacker to supply a malicious collection ZIP to a user who will run the remap command, meaning the threat is primarily to a trusted analyst’s environment, yet the impact would be equivalent to local privilege escalation on that host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Rapid7 Velociraptor to version 0.76.6 or newer to eliminate the YAML injection flaw.
  • If an upgrade is not immediately possible, disable or restrict the use of the --remap command for untrusted or externally sourced collection ZIP files, ensuring analysts only apply files from trusted internal sources.
  • Validate or sanitize the hostname field in client_info.json before processing, ensuring no unescaped double quotes or newlines are allowed, to block injection attempts.
  • Apply additional system hardening measures such as setting the NullACLManager to a restricted role or eliminating it for user sessions so that even if VQL executes, it lacks broad privileges.

Generated by OpenCVE AI on June 9, 2026 at 02:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title YAML Injection in Velociraptor Remapping Allows Arbitrary VQL Execution
First Time appeared Rapid7
Rapid7 velociraptor
Vendors & Products Rapid7
Rapid7 velociraptor
Type Values Removed Values Added
Description A YAML injection vulnerability exists in the Windows.Collectors.Remapping artifact of Rapid7 Velociraptor before version 0.76.6. The hostname field in client_info.json inside a collection ZIP is inserted into a YAML template via Go's text/template without escaping. An attacker providing a crafted collection ZIP can leverage literal double quotes and newlines in the hostname to break out of the YAML quoted string and inject a new mount remapping entry. When an analyst applies the generated remapping file with --remap, arbitrary VQL executes on their machine with NullACLManager (all permissions granted, unsandboxed).
Weaknesses CWE-116
CWE-74
CWE-94
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
rapid7
Published
Updated
Jun 10, 2026, 3:58 AM
Reserved
May 17, 2026, 11:31 PM
Status
Awaiting Analysis
Published
Jun 9, 2026, 1:16 AM
Modified
Jul 23, 2026, 8:10 AM