CVE-2018-12035 json
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 i…
published 2018-06-15 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-4019
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- yara Debian 14, Debian 13, Debian 12 3.7.1-3
debian advisories DEBIAN-CVE-2018-12035
- yara Ubuntu Pro 16.04 LTS 3.4.0+dfsg-2ubuntu0.1~esm1
- yara Ubuntu Pro 18.04 LTS 3.7.1-1ubuntu2+esm1
ubuntu advisories UBUNTU-CVE-2018-12035
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-12035 updated cvss 4.4
yara: out of bounds write in yr_execute_code in libyara/exec.c
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.32% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bnbdr.github.io https://bnbdr.github.io/posts/swisscheese/ referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/bnbdr/swisscheese referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/VirusTotal/yara/issues/891
issue-tracking, patch, third-party-advisory
-
bnbdr.github.io
/posts/swisscheese/
exploit, third-party-advisory
-
github.com
/bnbdr/swisscheese
exploit, third-party-advisory
Sources
- CVE List CVE-2018-12035
- NVD CVE-2018-12035
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.