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
yara (Ubuntu package)
python-yara
yara
How to mitigate CVE-2021-3402
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