CVE-2021-3402: Integer Overflow

Published Feb 18, 2021
·
Updated

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

Other sources

Integer overflow in libyara/modules/macho/macho.c in yara v4.0.2 and earlier could allow an attacker to either cause denial of service or information disclosure via a malicious Mach-O file.

Red Hat

Affected Software

4 affected componentsFixes available
redhat/libyara<4.0.4
4.0.4
VirusTotal yara<4.0.4
Fedoraproject Fedora=33
Fedoraproject Fedora=34

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libyara to a version that resolves this vulnerability.

    Fixed in 4.0.4
  2. Upgrade

    Upgrade libyara to a version that resolves this vulnerability.

    Fixed in 4.0.4
  3. Upgrade

    Upgrade libyara/modules/macho/macho.c in YARA v4.0.3 and earlier to a version that resolves this vulnerability.

    Fixed in 4.0.4
  4. Upgrade

    Upgrade libyara/modules/macho/macho.c in yara v4.0.2 and earlier to a version that resolves this vulnerability.

    Fixed in 4.0.4

Event History

May 14, 2021
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
DescriptionWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-3402?

CVE-2021-3402 is classified as a high severity vulnerability due to its potential for causing denial of service and information disclosure.

2

How do I fix CVE-2021-3402?

To fix CVE-2021-3402, upgrade to libyara version 4.0.4 or later.

3

What versions are affected by CVE-2021-3402?

CVE-2021-3402 affects all versions of libyara before 4.0.4.

4

What type of vulnerabilities are present in CVE-2021-3402?

CVE-2021-3402 contains an integer overflow and multiple buffer overflow reads.

5

What files or components are involved in CVE-2021-3402?

CVE-2021-3402 specifically involves the macho.c file within the libyara/modules/macho directory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203