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.
3.4.0+dfsg-23.4.0+dfsg-2build13.6.3+dfsg-1ubuntu13.7.1-1ubuntu13.7.1-1ubuntu24.5.1-14.5.2-1Exploitability
AV:LAC:LPR:NUI:RScope
S:UImpact
C:HI:NA:NCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N