Critical
Security advisory
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3402
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:05 UTC · Revision 1
Source evidence
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
osv:CVE-2021-3402
Complete source record
{
"id": "768dc93d037d67543cf9e026d65bf9d8259cc8937481c56464ff84362e580294",
"url": "https://osv.dev/vulnerability/CVE-2021-3402",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3402",
"summary": "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",
"evidence": "osv:CVE-2021-3402",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-3402",
"aliases": [
"CVE-2021-3402"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/virustotal/yara",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "814b6296f4ce389c8c16b5508b56f1f3d9af554d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:virustotal:yara:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.0.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v4.0.3",
"v4.0.2",
"v4.0.1",
"v4.0.0",
"v4.0.0-rc3",
"v4.0.0-rc2",
"v4.0.0-rc1",
"v3.11.0",
"v3.10.0-rc1",
"v3.10.0",
"v3.9.0",
"v3.8.1",
"v3.8.0",
"v3.7.0",
"v3.6.0",
"v3.4.0",
"v3.3.0",
"v3.2.0",
"v3.1.0",
"v3.0.0",
"v2.1.0",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3402.json"
}
}
],
"modified": "2026-10-24T10:31:02.855595852Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/",
"https://bugzilla.redhat.com/show_bug.cgi?id=1930175",
"https://www.openwall.com/lists/oss-security/2021/01/29/2",
"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "33"
},
{
"last_affected": "33"
},
{
"introduced": "34"
},
{
"last_affected": "34"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3402",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440109,
"published_at": "2021-05-14T21:15:07.537+00:00"
}