CriticalFix available
yara — 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
- yara
- Affected versions
- Not specified
- Fixed versions
- 4.0.4-1
- CVEs
- CVE-2021-3402
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:50 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:DEBIAN-CVE-2021-3402
yara
Fixed versions: 4.0.4-1
yara
Fixed versions: 4.0.4-1
yara
Fixed versions: 4.0.4-1
Complete source record
{
"id": "ff81fb06c23b55b1bb30b806b040f6b2c4e10fc59c1cc2247b7f5638bcda08e3",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3402",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-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:DEBIAN-CVE-2021-3402",
"products": [
{
"name": {
"value": "yara",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.0.4-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "yara",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.0.4-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "yara",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.0.4-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2021-3402",
"aliases": [
"DEBIAN-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": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.0.4-1"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/debian/yara?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3402.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.0.4-1"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/debian/yara?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3402.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.0.4-1"
}
]
}
],
"package": {
"name": "yara",
"purl": "pkg:deb/debian/yara?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3402.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:49.974924479Z",
"provider": "osv",
"upstream": [
"CVE-2021-3402"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-3402"
]
},
"related_cves": [
{
"value": "CVE-2021-3402",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 422405,
"published_at": "2021-05-14T21:15:07.537+00:00"
}