CVE-2021-30218
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-30218 is a vulnerability discovered in samurai version 1.2, identified on April 29, 2021. The vulnerability involves a NULL pointer dereference in the writefile() function within util.c, which can be triggered via a crafted build file (NVD, CVE).

Technical details

The vulnerability is classified as a NULL Pointer Dereference (CWE-476). It has been assigned a CVSS v3.1 Base Score of 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The issue occurs in the writefile() function where a NULL string pointer is dereferenced during file writing operations (NVD).

Impact

The vulnerability can lead to a program crash due to the NULL pointer dereference, potentially causing a denial of service condition. The CVSS scoring indicates that while there is no impact on confidentiality or integrity, there is a high impact on availability (NVD).

Mitigation and workarounds

A patch has been released that adds a NULL check before accessing the string pointer in the writefile() function. The fix involves adding a condition to verify that the string pointer is not NULL before attempting to write its contents (GitHub Patch).

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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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