Out-of-bounds read in YARA - CVE-2019-19648

 

Out-of-bounds read in YARA - CVE-2019-19648

Published: December 9, 2019 / Updated: January 26, 2021


Vulnerability identifier: #VU23465
CSH Severity: High
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-2019-19648
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary condition in the "macho_parse_file" functionality in "macho/macho.c" file when "command_size" may be inconsistent with the real size. A remote attacker can send a specially crafted MachO file, trigger out-of-bounds read error and cause a denial of service condition on the target system.


Affected software

YARA
Fedora
Ubuntu
yara (Ubuntu package)
python-yara
yara

How to mitigate CVE-2019-19648

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
python-yara - addressed in versions 4.1.0-1.el7, 4.1.0-1.el8, 4.1.0-1.fc33, 4.1.0-1.fc34
yara - addressed in versions 4.1.0-1.el7, 4.1.0-1.el8, 4.1.0-1.fc33, 4.1.0-1.fc34

External References

Related Security Bulletins