# CVE-2026-8795 YAML Injection Leading to Potential Analyst Targeting

<div class="cve">
  <p>
    <span>Published
    </span>on 2026-06-04
  </p>
  <p>
  </p>
  <details class="popup">
    <summary class="lbl rnd sec CVSS HIGH">CVSS · HIGH · 7.8
      <sub>⁄10
      </sub>
      <span style="font-size:0px;opacity:0"> · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
      </span>
    </summary>
    <div class="pop wht rnd shd pad bor">
      <span>Scoring scenario:
      </span>GENERAL
      <div>attackVector:
        <b>LOCAL
        </b>
      </div>
      <div>attackComplexity:
        <b>LOW
        </b>
      </div>
      <div>privilegesRequired:
        <b>NONE
        </b>
      </div>
      <div>userInteraction:
        <b>REQUIRED
        </b>
      </div>
      <div>scope:
        <b>UNCHANGED
        </b>
      </div>
      <div>confidentialityImpact:
        <b>HIGH
        </b>
      </div>
      <div>integrityImpact:
        <b>HIGH
        </b>
      </div>
      <div>availabilityImpact:
        <b>HIGH
        </b>
      </div>
      <div>
        <a class="vgi-dial" href="https://www.first.org/cvss/calculator/3.0#CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" target="_blank">Open CVSS Calc
        </a>
      </div>
    </div>
  </details>
  <p>
  </p>
  <div id="description">
    <p>
    A YAML injection vulnerability in the Windows.Collectors.Remapping
    artifact allows an attacker who supplies a crafted
    collection ZIP to execute arbitrary VQL on the analyst's
    machine. The hostname field in client_info.json inside the ZIP is
    inserted into a YAML template via Go's text/template without any
    YAML escaping. By embedding a literal " followed by newlines in
    the hostname, an attacker breaks out of the YAML quoted string and
    injects a new mount remapping entry whose scope field contains VQL
    that executes with NullACLManager (all permissions granted, no
    sandboxing) when the analyst applies the generated remapping file
    with --remap.
    </p>
  </div>
  <div id="problem">
    <h2>Problem:
    </h2>
    <p>CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
      <a href="https://cwe.mitre.org/data/definitions/74" target="_blank">
        <small>CWE-74</small>
      </a>
      <br>
    </p>
    <p>CWE-94  Improper Control of Generation of Code ('Code Injection')
      <a href="https://cwe.mitre.org/data/definitions/94" target="_blank">
        <small>CWE-94</small>
      </a>
      <br>
    </p>
    <p>CWE-116 Improper Encoding or Escaping of Output
      <a href="https://cwe.mitre.org/data/definitions/116" target="_blank">
        <small>CWE-116</small>
      </a>
      <br>
    </p>

  </div>
  <div id="impact">
    <h2>Impact:
    </h2>
    <p>CAPEC-549: Local Execution of Code
      <a href="https://capec.mitre.org/data/definitions/549.html" target="_blank">
        <small>CAPEC-549
        </small>
      </a>
      <br>
    </p>
  </div>
  <div id="status">
    <h2>Product Status:
    </h2>
    <table class="striped">
      <colgroup>
        <col>
        <col class="affectedCol">
      </colgroup>
      <thead>
        <tr>
          <th>Product
          </th>
          <th>Affected
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td rowspan="1">
            <b class="vgi-package">Rapid7 Velociraptor
            </b>
            <i> on
            </i>
            <span class="vgi-stack">Linux
            </span>
            <br>
            <a class="vgi-ext" href="https://github.com/Velocidex/velociraptor">source repo
            </a>
            <br>
            <span class="vgi-impact">Default status is unaffected
            </span>
          </td>
          <td>
            before 0.76.6
          </td>
        </tr>
      </tbody>
    </table>
    <br style="font-size:0;">
  </div>
  <div class="rnd pad sec vgap" id="credits">
    <h2>Credits:
    </h2>
    <p>We thank <b>Artificial Intelligence</b> for identifying and reporting this issue responsibly
    </p>
  </div>
  <div id="references">
    <h2>References
    </h2>
    <p>
    </p>
    <div>
      <a href="https://docs.velociraptor.app/announcements/advisories/cve-2026-8795/">docs.velociraptor.app/announcements/advisories/cve-2026-8795/
      </a>
    </div>
    <p>
    </p>
  </div>
</div>

## Required configuration for exposure

This vulnerability only affects users who use
[remapping](/docs/forensic/deaddisk/creating_running/) to directly
operate on offline collections. This usage typically uses the
`Windows.Collectors.Remapping` artifact to generate a remapping file
and then subsequently uses that remapping file to collect artifacts on
the offline collector file directly. This is a very niche use case and
a very common processing pipeline.

To mitigate this issue you can upgrade the server to version
`0.76.6` or copy the latest [Windows.Collectors.Remapping](https://github.com/Velocidex/velociraptor/blob/master/artifacts/definitions/Windows/Collectors/Remapping.yaml) artifact from the
latest release into the [config file](/docs/deployment/references/#Frontend.artifact_definitions_directory).

