{"id":"CVE-2021-3402","aliases":["CVE-2021-3402"],"related":[],"kind":"vulnerability","state":"published","title":"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 t…","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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"Un desbordamiento de enteros y varias lecturas de desbordamiento de búfer en el archivo libyara/modules/macho/macho.c en YARA versiones v4.0.3 y anteriores, podrían permitir a un atacante causar una denegación de servicio o una divulgación de información por medio de un archivo Mach-O malicioso.&#xa0;Afecta a todas las versiones anteriores a libyara 4.0.4","source":"nvd"}],"published":"2021-05-14T20:05:25.000Z","modified":"2026-06-17T04:05:01.763Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"libyara 4.0.4","status":"affected"}],"product":"libyara","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.0.4"}],"vendor":"virustotal","product":"yara","cpe":"cpe:2.3:a:virustotal:yara:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175","tags":["issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.openwall.com/lists/oss-security/2021/01/29/2","tags":["exploit","mailing-list","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3402","url":"https://www.cve.org/CVERecord?id=CVE-2021-3402","licence":"CVE Terms of Use","modified":"2024-08-03T16:53:17.490Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3402","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3402","licence":"Public domain","modified":"2026-06-17T04:05:01.763Z"}],"updatedAt":"2026-11-25T22:58:01.431Z","epss":{"score":0.02201,"percentile":0.83033,"date":"2026-12-01T12:00:22.000Z"}}