CVE-2023-40857
NixOS vulnerability analysis and mitigation

Overview

A Buffer Overflow vulnerability was discovered in VirusTotal YARA version 4.3.2, identified as CVE-2023-40857. The vulnerability allows remote attackers to execute arbitrary code through the yr_execute_cod function in the exe.c component. The issue was disclosed on August 10, 2023 (GitHub Issue).

Technical details

The vulnerability is classified as a heap-buffer-overflow that occurs in the yr_execute_code function located in libyara/exec.c at line 1426. The issue manifests as a READ operation of size 8 at an unauthorized memory location. The vulnerability received a CVSS v3.1 Base Score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially allow attackers to execute arbitrary code on affected systems. This could lead to complete system compromise, including unauthorized access to sensitive data, system modifications, and potential service disruptions (NVD).

Exploitability

The vulnerability can be triggered by processing specially crafted input through the YARA engine. A proof of concept has been documented that demonstrates the heap-buffer-overflow can be reproduced by running YARA with specific command-line parameters against a crafted input file (GitHub Issue).

Mitigation and workarounds

According to Debian Security Tracker, this is considered a non-issue as untrusted YARA rules are not supported. This was clarified in the follow-up discussion at https://github.com/VirusTotal/yara/issues/1948 (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management