CVE-2023-2226 Velociraptor crashes while parsing some malformed PE or OLE files

Published on 2023-04-21

Due to insufficient validation in the PE and OLE parsers in Rapid7's Velociraptor versions earlier than 0.6.8 allows attacker to crash Velociraptor during parsing of maliciously malformed files. 

For this attack to succeed, the attacker needs to be able to introduce malicious files to the system at the same time that Velociraptor attempts to collect any artifacts that attempt to parse PE files, Authenticode signatures, or OLE files. After crashing, the Velociraptor service will restart and it will still be possible to collect other artifacts.

Problem:

CWE-125 Out-of-bounds Read CWE-125

Impact:

CAPEC-540 Overread Buffers CAPEC-540

Affected Product Status:

ProductAffected
Rapid7 Velociraptor » PE Parser, OLE parser, Authenticode parser on Windows
package reposource repo
Default status is unaffected
before 0.6.8

Solution:

Upgrade the clients to version 0.6.8-2

Credits:

Thanks to b1tg https://github.com/b1tg for reporting these issues and providing samples that trigger the crashes