Skip to main content
Vulnerability Database/CVE-2026-77797

CVE-2026-77797: Velociraptor Prefetch DOS Vulnerability

CVE-2026-77797 is a denial of service vulnerability in Velociraptor prefetch library caused by out of bounds access when parsing malformed prefetch files. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-77797 Overview

CVE-2026-77797 affects the Velociraptor digital forensics and incident response (DFIR) platform. The vulnerability resides in Velociraptor's go-prefetch library, which parses Windows prefetch files. A malformed prefetch file can trigger an out-of-bounds read during parsing, causing the parser to crash. The flaw is classified under [CWE-20: Improper Input Validation] and requires local access with user interaction to exploit. Successful exploitation does not disclose data or allow code execution; the impact is limited to crashing the parser process when it ingests a crafted file.

Critical Impact

An attacker who can place a malformed prefetch file in a location processed by Velociraptor can crash the parsing routine, interrupting forensic collection or analysis workflows.

Affected Products

  • Velociraptor DFIR platform using the go-prefetch library
  • Velociraptor prefetch artifact collection on Windows endpoints
  • Downstream tools consuming the Velocidex/go-prefetch Go module

Discovery Timeline

  • 2026-09-24 - CVE-2026-77797 published to the National Vulnerability Database (NVD)
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-77797

Vulnerability Analysis

Velociraptor is an open-source endpoint visibility and DFIR tool that collects Windows artifacts, including prefetch (.pf) files generated by the Windows Superfetch service. The parser is implemented in Go in the Velocidex/go-prefetch module and includes a decompressor for the LZXPRESS Huffman format used by Windows 10 and later prefetch files.

The vulnerability occurs in the LZXPRESS Windows decompressor when it processes a malformed prefetch file. Length or offset fields embedded in the compressed stream are not validated against the available output buffer, which allows the decoder to read or write outside the intended slice boundaries. Go's runtime detects the out-of-bounds slice access and terminates the parser with a panic.

Because attack prerequisites include local access and user interaction, exploitation requires that a target either load a crafted prefetch file or run Velociraptor against a filesystem containing one. The result is a denial-of-service condition against the parser, not code execution or data disclosure.

Root Cause

The root cause is missing bounds validation inside the LZXPRESS Huffman decompression routine in lzxpress_windows.go. The decompressor trusts length and offset values decoded from the input without verifying that the resulting write or copy stays within the destination buffer, enabling an overflow condition on crafted inputs.

Attack Vector

An attacker crafts a malformed .pf prefetch file and places it where Velociraptor will parse it, for example, on a disk image, a monitored endpoint, or an evidence directory loaded by an analyst. When the prefetch artifact collector or offline parser processes the file, the overflow triggers a panic in the Go runtime and halts the parsing operation.

go
//go:build windows
// +build windows

package prefetch

// Patch: Check for overflow in Windows decompressor.
// Source: https://github.com/Velocidex/go-prefetch/commit/4bae9796298011598d577b125e0b3db3ee03eb74

The upstream fix in commit 4bae9796298011598d577b125e0b3db3ee03eb74 adds overflow checks inside lzxpress_windows.go so that out-of-range length or offset values are rejected before the decoder performs the unsafe write.

Detection Methods for CVE-2026-77797

Indicators of Compromise

  • Unexpected crashes or Go runtime panics logged by Velociraptor when parsing prefetch artifacts
  • Prefetch files with inconsistent header fields, abnormal sizes, or malformed LZXPRESS Huffman compressed blocks
  • Collection jobs that terminate prematurely while enumerating C:\Windows\Prefetch

Detection Strategies

  • Monitor Velociraptor server and client logs for panic traces originating in the go-prefetch package or lzxpress_windows.go
  • Flag prefetch files that fail standard validation against the Windows 10+ prefetch structure
  • Compare the version of the Velocidex/go-prefetch module in deployed Velociraptor binaries against the patched commit

Monitoring Recommendations

  • Alert on repeated parser failures tied to the same host or evidence source, which may indicate an attacker planting malformed artifacts
  • Track Velociraptor artifact collection success rates and investigate drops in prefetch artifact completion
  • Review file writes to C:\Windows\Prefetch from non-system processes

How to Mitigate CVE-2026-77797

Immediate Actions Required

  • Update Velociraptor and any custom tooling to a build that includes commit 4bae9796298011598d577b125e0b3db3ee03eb74 from Velocidex/go-prefetch
  • Rebuild downstream Go binaries that vendor go-prefetch after updating the module dependency
  • Validate prefetch artifact collection in a test environment after upgrading

Patch Information

The fix is published in the GitHub commit for go-prefetch, which adds overflow checks to the Windows LZXPRESS decompressor. Refer to the Velociraptor Advisory CVE-2026-7797 for release details and affected versions.

Workarounds

  • Disable or exclude the prefetch artifact collector in Velociraptor hunts until the patched version is deployed
  • Restrict offline parsing to prefetch files from trusted sources and avoid processing untrusted disk images with unpatched builds
  • Isolate the Velociraptor parsing process so that a crash does not affect other collection or analysis workflows
bash
# Update the go-prefetch module to the patched revision
go get github.com/Velocidex/go-prefetch@4bae9796298011598d577b125e0b3db3ee03eb74
go mod tidy
go build ./...

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.