CVE-2021-3402Integer Overflow or Wraparound in Yara

Severity
9.1CRITICALNVD
OSV7.5
EPSS
1.4%
top 19.44%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 14
Latest updateMar 9

Description

An integer overflow and several buffer overflow reads in libyara/modules/macho/macho.c in YARA v4.0.3 and earlier could allow an attacker to either cause denial of service or information disclosure via a malicious Mach-O file. Affects all versions before libyara 4.0.4

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HExploitability: 3.9 | Impact: 5.2

Affected Packages3 packages

NVDvirustotal/yara< 4.0.4
Debianvirustotal/yara< 4.0.4-1+3
Ubuntuvirustotal/yara< 3.4.0+dfsg-2ubuntu0.1~esm1+2

Also affects: Fedora 33, 34

🔴Vulnerability Details

4
OSV
yara vulnerabilities2026-03-09
GHSA
GHSA-2c7q-h8gj-7hgc: An integer overflow and several buffer overflow reads in libyara/modules/macho/macho2022-05-24
OSV
CVE-2021-3402: An integer overflow and several buffer overflow reads in libyara/modules/macho/macho2021-05-14
CVEList
CVE-2021-3402: An integer overflow and several buffer overflow reads in libyara/modules/macho/macho2021-05-14

📋Vendor Advisories

2
Ubuntu
YARA vulnerabilities2026-03-09
Debian
CVE-2021-3402: yara - An integer overflow and several buffer overflow reads in libyara/modules/macho/m...2021
CVE-2021-3402 — Integer Overflow or Wraparound in Yara | cvebase