CVE-2018-12035
published 2018-06-15CVE-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.
PriorityP335high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
1.24%
65.8th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | yara | < yara 3.7.1-3 (bookworm) | yara 3.7.1-3 (bookworm) |
| virustotal | yara | <= 3.7.1 | — |
| virustotal | yara | >= 0 < 3.7.1-3 | 3.7.1-3 |
| virustotal | yara | >= 0 < 3.7.1-3 | 3.7.1-3 |
| virustotal | yara | >= 0 < 3.7.1-3 | 3.7.1-3 |
| virustotal | yara | >= 0 < 3.7.1-3 | 3.7.1-3 |
| virustotal | yara | >= 0 < 3.4.0+dfsg-2ubuntu0.1~esm1 | 3.4.0+dfsg-2ubuntu0.1~esm1 |
| virustotal | yara | >= 0 < 3.7.1-1ubuntu2+esm1 | 3.7.1-1ubuntu2+esm1 |
| virustotal | yara | >= 0 < 3.9.0-1ubuntu0.1~esm1 | 3.9.0-1ubuntu0.1~esm1 |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8LOW
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
yara vulnerabilities
osv·2026-03-09·CVSS 7.5
CVE-2016-10211 [HIGH] yara vulnerabilities
yara vulnerabilities
Kamil Frankowicz discovered that a number of YARA's functions
generated memory exceptions when processing specially crafted
rules or files. A remote attacker could possibly use these
issues to cause YARA to crash, resulting in a denial of
service. These issues only affected Ubuntu 16.04 LTS.
(CVE-2016-10211, CVE-2017-5923, CVE-2017-5924, CVE-2017-8294,
CVE-2017-8929, CVE-2017-9304, CVE-2017-9438, CVE-2017-9465)
Jurriaan Bremer discovered that YARA's yr_object_array_set_limit()
function could result in a heap buffer overflow when scanning
specially crafted .NET files. A remote attacker could possibly use
this issue to cause YARA to crash, resulting in a denial of service.
This issue only affected Ubuntu 16.04 LTS. (CVE-2017-11328)
It was discovered that YARA's yr_exe
GHSA
GHSA-f8gv-jwf8-mm4p: In YARA 3
ghsa_unreviewed·2022-05-14
CVE-2018-12035 [HIGH] CWE-787 GHSA-f8gv-jwf8-mm4p: In YARA 3
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.
OSV
CVE-2018-12035: In YARA 3
osv·2018-06-15·CVSS 7.8
CVE-2018-12035 [HIGH] CVE-2018-12035: In YARA 3
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.
Ubuntu
YARA vulnerabilities
vendor_ubuntu·2026-03-09·CVSS 7.5
CVE-2017-9304 [HIGH] YARA vulnerabilities
Title: YARA vulnerabilities
Summary: Several security issues were fixed in YARA.
Kamil Frankowicz discovered that a number of YARA's functions
generated memory exceptions when processing specially crafted
rules or files. A remote attacker could possibly use these
issues to cause YARA to crash, resulting in a denial of
service. These issues only affected Ubuntu 16.04 LTS.
(CVE-2016-10211, CVE-2017-5923, CVE-2017-5924, CVE-2017-8294,
CVE-2017-8929, CVE-2017-9304, CVE-2017-9438, CVE-2017-9465)
Jurriaan Bremer discovered that YARA's yr_object_array_set_limit()
function could result in a heap buffer overflow when scanning
specially crafted .NET files. A remote attacker could possibly use
this issue to cause YARA to crash, resulting in a denial of service.
This issue only affected Ubuntu 16.0
Debian
CVE-2018-12035: yara - In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can caus...
vendor_debian·2018·CVSS 7.8
CVE-2018-12035 [HIGH] CVE-2018-12035: yara - In YARA 3.7.1 and prior, parsing a specially crafted compiled rule file can caus...
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.
Scope: local
bookworm: resolved (fixed in 3.7.1-3)
bullseye: resolved (fixed in 3.7.1-3)
forky: resolved (fixed in 3.7.1-3)
sid: resolved (fixed in 3.7.1-3)
trixie: resolved (fixed in 3.7.1-3)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c
bugzilla·2018-06-15·CVSS 7.8
CVE-2018-12035 [HIGH] CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c
A flaw was found 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.
References:
https://bnbdr.github.io/posts/swisscheese/
https://github.com/bnbdr/swisscheese
https://github.com/VirusTotal/yara/issues/891
Discussion:
Created yara tracking bugs for this issue:
Affects: epel-all [bug 1591946]
Affects: fedora-all [bug 1591945]
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.
Bugzilla
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [fedora-all]
bugzilla·2018-06-15·CVSS 7.8
CVE-2018-12035 [HIGH] CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [fedora-all]
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple suppo
Bugzilla
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [epel-all]
bugzilla·2018-06-15·CVSS 7.8
CVE-2018-12035 [HIGH] CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [epel-all]
CVE-2018-12035 yara: out of bounds write in yr_execute_code in libyara/exec.c [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported
2018-06-15
Published