# 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 yrexecutecode in…

- Severity: High 7.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.29%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2018-06-15T16:00:00.000Z
- Modified: 2026-06-17T01:37:02.480Z
- Weaknesses: CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- virustotal yara: up to 3.7.1

## Every score

- NVD: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://bnbdr.github.io/posts/swisscheese/> (exploit, third-party-advisory)
- <https://github.com/bnbdr/swisscheese> (exploit, third-party-advisory)
- <https://github.com/VirusTotal/yara/issues/891> (issue-tracking, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2018-12035](https://www.cve.org/CVERecord?id=CVE-2018-12035), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2018-12035](https://nvd.nist.gov/vuln/detail/CVE-2018-12035), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-12035 · Whole record: https://cve.day/CVE-2018-12035.json · Rebuilt by cve.day 2026-11-25T22:57:38.306Z
