{"id":"CVE-2021-3402","details":"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","modified":"2026-05-28T04:07:40.862031300Z","published":"2021-05-14T21:15:07.537Z","database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"33"},{"last_affected":"34"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora"}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175"},{"type":"EVIDENCE","url":"https://www.openwall.com/lists/oss-security/2021/01/29/2"},{"type":"EVIDENCE","url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/virustotal/yara","events":[{"introduced":"0"},{"fixed":"814b6296f4ce389c8c16b5508b56f1f3d9af554d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"4.0.4"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:virustotal:yara:*:*:*:*:*:*:*:*"}}],"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/osv-test-cve-osv-conversion/osv-output/CVE-2021-3402.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}