CVE-2021-3402
publishedlibyara: Integer overflow in libyara/modules/macho/macho.c via a malicious Mach-O file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | libyaralibyara 4.0.4 | Affected | Not stated | redhat |
| Ubuntu | focal | libyara3 | Advisory build | 3.9.0-1ubuntu0.1~esm1 | USN-8080-1 |
| Ubuntu | focal | yara | Advisory build | 3.9.0-1ubuntu0.1~esm1 | USN-8080-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | libyara | libyara 4.0.4 (affected) | redhat · cna |
Weaknesses
1- CWE-190
References
5- https://bugzilla.redhat.com/show_bug.cgi?id=1930175
- FEDORA-2021-dd62918333 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/
- FEDORA-2021-f41d5fc954 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/
- https://www.openwall.com/lists/oss-security/2021/01/29/2
- https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a3390465e63123194c7c3042e4285b222c4c8a96c056325026e05b978cc2ab4b
- Ingested
- 23 Sep 2026, 07:55:51 UTC
- Source record
- Official CVE record