Description
In YARA 3.8.1, bytecode in a specially crafted compiled rule is exposed to information about its environment, in libyara/exec.c. This is a consequence of the design of the YARA virtual machine.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | yara | 3.8.1-2 | — |
| Debian 13 | yara | 3.8.1-2 | — |
| Debian 12 | yara | 3.8.1-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | yara | 3.7.1-1ubuntu2+esm1 | — |
| Ubuntu Pro 16.04 LTS | yara | 3.4.0+dfsg-2ubuntu0.1~esm1 | — |