CVE-2026-88340

yara: YARA: Memory corruption and denial of service via specially crafted rule files

Published Sep 22, 2026 CVSS 3.1 · 7.6 High EPSS < 1% KEV · Not listed
Description
An invalid pointer release vulnerability exists in YARA 4.5.8 during deserialization of compiled .yrc rule files. The vulnerability is caused by insufficient validation of external-variable pointers, which may lead to invalid free in yr_rules_destroy() or wild pointer access in yr_object_create(). An attacker can provide a specially crafted .yrc file that causes memory corruption and application crash.

Analysis

AI-generated

Technical impact

YARA 4.5.8 has a memory corruption vulnerability that occurs when deserializing compiled .yrc rule files. The flaw is caused by the program’s lack of validation of external‑variable pointers, which can lead to an invalid free in yr_rules_destroy() or a wild pointer access in yr_object_create(). An adversary who can supply a malicious .yrc file is able to trigger memory corruption, causing the application to crash without any requirement for remote code execution.

Affected Systems

Systems that run YARA 4.5.8 and process compiled rule files are affected. This typically includes malware‑analysis workstations, security scanners, continuous integration pipelines, and any other environment that loads or evaluates .yrc files. The impact is observed whenever a malformed file is deserialized, leading to an application failure.

Risk and Exploitability

The vulnerability requires an attacker to provide a crafted rule file to the YARA process; the attack vector is therefore limited to scenarios where untrusted or externally supplied rule files are loaded. The CVSS score of 7.6 indicates high severity. The EPSS score of <1% indicates a very low probability of exploitation, and the issue is not listed in the CISA KEV catalog, implying no documented public exploitation yet. However, because memory corruption can lead to a denial of service, the risk remains non‑trivial and mitigation should be applied promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Patch YARA to the latest release, which includes the external‑variable pointer validation that addresses the Use After Free issue.
  • Sanity‑check .yrc rule files before deserialization—validate checksums or signatures—to prevent malicious files from being loaded (mitigating the Object‑less Input Data weakness).
  • Run YARA processes that load external rule files in a sandboxed or least‑privileged environment to limit the impact of any memory corruption and ensure proper isolation from the host system (dealing with External Subcomponent Isolation concerns, CWE‑763).

Generated by OpenCVE AI on September 26, 2026 at 05:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
CWE-778
Type Values Removed Values Added
Title Memory corruption in YARA 4.5.8 from crafted .yrc files yara: YARA: Memory corruption and denial of service via specially crafted rule files
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Title Memory corruption in YARA 4.5.8 from crafted .yrc files
First Time appeared Virustotal
Virustotal yara
Weaknesses CWE-416
CWE-778
Vendors & Products Virustotal
Virustotal yara
Type Values Removed Values Added
Description An invalid pointer release vulnerability exists in YARA 4.5.8 during deserialization of compiled .yrc rule files. The vulnerability is caused by insufficient validation of external-variable pointers, which may lead to invalid free in yr_rules_destroy() or wild pointer access in yr_object_create(). An attacker can provide a specially crafted .yrc file that causes memory corruption and application crash.
References
Weaknesses
  • CWE-763

    Release of Invalid Pointer or Reference

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 25, 2026, 7:47 PM
Reserved
Sep 10, 2026, 12:00 AM
Status
Awaiting Analysis
Published
Sep 22, 2026, 8:17 PM
Modified
Sep 25, 2026, 8:17 PM
Severity
Moderate
Public date
Sep 22, 2026, 12:00 AM