CVE-2018-12035
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.32%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.0
- 7.8 HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 1.32% probability · 71th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-787
- Affected
- virustotal/yara
- Source
- cve@mitre.org
EPSS 1.3% since 27 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
References
- https://bnbdr.github.io/posts/swisscheese/Exploit, Third Party Advisory
- https://github.com/VirusTotal/yara/issues/891Issue Tracking, Patch, Third Party Advisory
- https://github.com/bnbdr/swisscheeseExploit, Third Party Advisory
- https://bnbdr.github.io/posts/swisscheese/Exploit, Third Party Advisory
- https://github.com/VirusTotal/yara/issues/891Issue Tracking, Patch, Third Party Advisory
- https://github.com/bnbdr/swisscheeseExploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.