{"id":"CVE-2021-3402","aliases":["DEBIAN-CVE-2021-3402","EUVD-2021-26730","GHSA-2c7q-h8gj-7hgc","UBUNTU-CVE-2021-3402"],"status":"published","title":"An integer overflow and several buffer overflow reads in libyara/modules/macho/macho.c in YARA v4...","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","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02201,"percentile":0.8264,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2021-05-14T20:05:25Z","modified":"2026-10-24T10:31:02Z","fixes":[{"ecosystem":"Debian:12","package":"yara","fixed_in":["4.0.4-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"yara","fixed_in":["4.0.4-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"yara","fixed_in":["4.0.4-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"yara","fixed_in":["3.9.0-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"yara","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.4-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"yara","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.4-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"yara","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.4-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"yara","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-1ubuntu0.1~esm1"}]}],"versions":["3.9.0-1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"virustotal","product":"yara"}],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://www.openwall.com/lists/oss-security/2021/01/29/2","tags":["x_refsource_MISC","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence","report"]},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3402"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/"},{"url":"https://github.com/advisories/GHSA-2c7q-h8gj-7hgc"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3402","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3402","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3402","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8080-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-3402","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","status":"published","published":"2021-05-14T20:05:25Z","modified":"2024-08-03T16:53:17.49Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-26730","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","status":"published","published":"2021-05-14T20:05:25Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-2c7q-h8gj-7hgc","title":"An integer overflow and several buffer overflow reads in libyara/modules/macho/macho.c in YARA v4...","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","status":"published","published":"2022-05-24T19:02:25Z","modified":"2023-01-29T05:06:16Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:45:59.496932Z"}],"nvd":[{"id":"CVE-2021-3402","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","status":"published","published":"2021-05-14T21:15:07.537Z","modified":"2026-06-17T04:05:01.763Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:06:53.343329Z"}],"osv":[{"id":"CVE-2021-3402","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","status":"published","published":"2021-05-14T21:15:07.537Z","modified":"2026-10-24T10:31:02.855595852Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3402","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","status":"published","published":"2021-05-14T21:15:07.537Z","modified":"2026-10-23T18:03:49.974924479Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3402","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","status":"published","published":"2021-05-14T21:15:00Z","modified":"2026-04-22T12:55:05.297219Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.870979Z"}]}}
