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).

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-2025-68120MEDIUM5.4
  • NixOSNixOS
  • go
NoYesDec 30, 2025
CVE-2025-69413MEDIUM5.3
  • NixOSNixOS
  • code.gitea.io/gitea
NoYesJan 01, 2026
CVE-2025-15412MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-15411MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-68932LOW2.9
  • NixOSNixOS
  • freshrss
NoYesDec 27, 2025

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