Uncontrolled Recursion in YARA - CVE-2017-9304
Published: May 31, 2017 / Updated: August 8, 2020
Vulnerability identifier: #VU38930
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-9304
CWE-ID: CWE-674
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.
libyara/re.c in the regexp module in YARA 3.5.0 allows remote attackers to cause a denial of service (stack consumption) via a crafted rule that is mishandled in the _yr_re_emit function.
Affected software
YARA
Fedora
Ubuntu
yara (Ubuntu package)
yara
Fedora
Ubuntu
yara (Ubuntu package)
yara
How to mitigate CVE-2017-9304
Install update from vendor's website.
yara (Ubuntu package) - addressed in versions 3.4.0+dfsg-2ubuntu0.1~esm1, 3.7.1-1ubuntu2+esm1, 3.9.0-1ubuntu0.1~esm1
yara - addressed in versions 3.6.2-1.el6, 3.6.2-1.el7, 3.6.2-1.fc24, 3.6.2-1.fc25, 3.6.2-1.fc26, 3.6.3-1.el6, 3.6.3-1.el7
yara - addressed in versions 3.6.2-1.el6, 3.6.2-1.el7, 3.6.2-1.fc24, 3.6.2-1.fc25, 3.6.2-1.fc26, 3.6.3-1.el6, 3.6.3-1.el7