Out-of-bounds write in YARA - CVE-2018-12035

 

Out-of-bounds write in YARA - CVE-2018-12035

Published: August 8, 2018


Vulnerability identifier: #VU14223
CSH Severity: Low
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-12035
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the yr_execute_code function, as defined in the source code file libyara/exec.c due to out-of-bounds write. A remote attacker can trick the victim into accessing a YARA rule that submits malicious input, trigger memory corruption and execute arbitrary code with elevated privileges.

Successful exploitation of the vulnerability may result in system compromise.


Affected software

YARA
Fedora
Ubuntu
yara (Ubuntu package)
yara

How to mitigate CVE-2018-12035

Update to version 3.8.0.

YARA - update to 3.8.0
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.8.1-1.el7, 3.8.1-1.fc27, 3.8.1-1.fc28

External References

Related Security Bulletins