In YARA 3.8.1, bytecode in a specially crafted compiled rule can read data from any arbitrary address in memory, in libyara/exec.c. Specifically, OP_COUNT can read a DWORD.
{
"cpe": "cpe:2.3:a:virustotal:yara:3.8.1:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "3.8.1"
}
],
"source": "CPE_STRING"
}