CVE-2021-3402
An integer overflow and several buffer overflow reads in libyara/modul ...
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| debian 10 | yara | no fix listed |
| debian 11 | yara | 4.0.4-1 |
| debian 12 | yara | 4.0.4-1 |
| debian 13 | yara | 4.0.4-1 |
| debian 14 | yara | 4.0.4-1 |
| debian 9 | yara | no fix listed |
| echo | yara | 4.0.4-1 |
| ubuntu 20.04-ESM | yara | 3.9.0-1ubuntu0.1~esm1 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1930175
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FKNXSH5ERG6NELTXCYVJLUPJJJ2TNEBD/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXM224OLGI6KAOROLDPPGGCZ2OQVQ6HH/
- https://ubuntu.com/security/notices/USN-8080-1
- https://www.cve.org/CVERecord?id=CVE-2021-3402
- https://www.openwall.com/lists/oss-security/2021/01/29/2
- https://www.x41-dsec.de/lab/advisories/x41-2021-001-yara/