Description
In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can cause an out of bounds write vulnerability in yr_execute_code in libyara/exec.c.
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.7.1-3 | — |
| Debian 13 | yara | 3.7.1-3 | — |
| Debian 12 | yara | 3.7.1-3 | — |
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 | — |