
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."