{"api_version":"1","generated_at":"2026-07-04T10:43:08+00:00","cve":"CVE-2021-3402","urls":{"html":"https://cve.report/CVE-2021-3402","api":"https://cve.report/api/cve/CVE-2021-3402.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3402","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3402"},"summary":{"title":"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","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2021-05-14 21:15:00","updated_at":"2023-11-07 03:37:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://www.openwall.com/lists/oss-security/2021/01/29/2","name":"https://www.openwall.com/lists/oss-security/2021/01/29/2","refsource":"MISC","tags":[],"title":"oss-security - X41 D-Sec GmbH Security Advisory X41-2021-001: Multiple\n Vulnerabilities in YARA","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/","name":"FEDORA-2021-f41d5fc954","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: yara-4.1.0-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175","refsource":"MISC","tags":[],"title":"1930175 – (CVE-2021-3402) CVE-2021-3402 libyara: Integer overflow in libyara/modules/macho/macho.c via a malicious Mach-O file","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/","name":"FEDORA-2021-dd62918333","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: python-yara-4.1.0-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/","name":"FEDORA-2021-f41d5fc954","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: yara-4.1.0-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/","name":"FEDORA-2021-dd62918333","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: python-yara-4.1.0-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/","name":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/","refsource":"MISC","tags":[],"title":"Advisory X41-2021-001: Multiple Vulnerabilities in YARA | X41 D-SEC","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3402","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3402","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3402","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3402","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3402","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"virustotal","cpe5":"yara","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3402","qid":"180397","title":"Debian Security Update for yara (CVE-2021-3402)"},{"cve":"CVE-2021-3402","qid":"281241","title":"Fedora Security Update for python (FEDORA-2021-f41d5fc954)"},{"cve":"CVE-2021-3402","qid":"281242","title":"Fedora Security Update for python (FEDORA-2021-dd62918333)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3402","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"libyara","version":{"version_data":[{"version_value":"libyara 4.0.4"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-190"}]}]},"references":{"reference_data":[{"refsource":"FEDORA","name":"FEDORA-2021-f41d5fc954","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/"},{"refsource":"FEDORA","name":"FEDORA-2021-dd62918333","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1930175"},{"refsource":"MISC","name":"https://www.openwall.com/lists/oss-security/2021/01/29/2","url":"https://www.openwall.com/lists/oss-security/2021/01/29/2"},{"refsource":"MISC","name":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/","url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/"}]},"description":{"description_data":[{"lang":"eng","value":"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"}]}},"nvd":{"publishedDate":"2021-05-14 21:15:00","lastModifiedDate":"2023-11-07 03:37:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":6.4},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:virustotal:yara:*:*:*:*:*:*:*:*","versionEndExcluding":"4.0.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3402","Ordinal":"201934","Title":"CVE-2021-3402","CVE":"CVE-2021-3402","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3402","Ordinal":"1","NoteData":"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","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3402","Ordinal":"2","NoteData":"2021-05-14","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3402","Ordinal":"3","NoteData":"2021-05-14","Type":"Other","Title":"Modified"}]}}}