Vulnerabilities / CVE-2021-3402

critical

CVE-2021-3402

An integer overflow and several buffer overflow reads in libyara/modul ...

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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

Affected packages and fixed versions

SourcePackageFixed in
debian 10yarano fix listed
debian 11yara4.0.4-1
debian 12yara4.0.4-1
debian 13yara4.0.4-1
debian 14yara4.0.4-1
debian 9yarano fix listed
echoyara4.0.4-1
ubuntu 20.04-ESMyara3.9.0-1ubuntu0.1~esm1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.