Integer overflow in YARA - CVE-2021-3402
Published: January 29, 2021 / Updated: March 9, 2026
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to integer overflow within the macho_parse_fat_file() function in the macho module. A remote attacker can pass specially crafted file to the application, trigger integer overflow and perform a denial of service (DoS) attack.
Affected software
Fedora
Ubuntu
libyara3 (Ubuntu package)
yara (Ubuntu package)
python-yara
yara
How to mitigate CVE-2021-3402
libyara3 (Ubuntu package) - update to 3.9.0-1ubuntu0.1~esm1
yara (Ubuntu package) - update to 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