{"id":"UBUNTU-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-04-22T12:55:05.297219Z","published":"2021-05-14T21:15:00Z","related":["USN-8080-1"],"upstream":["CVE-2021-3402"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3402"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2021/01/29/2"},{"type":"REPORT","url":"https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3402"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8080-1"}],"affected":[{"package":{"name":"yara","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/yara@3.9.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.0-1ubuntu0.1~esm1"}]}],"versions":["3.9.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.9.0-1ubuntu0.1~esm1","binary_name":"libyara3"},{"binary_name":"yara","binary_version":"3.9.0-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-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"},{"type":"Ubuntu","score":"medium"}]}