SecurityContext

CVE-2021-30218: samurai - Null Pointer Dereference

  • Cve: CVE-2021-30218
  • Name: samurai - Null Pointer Dereference
  • Description: samurai 1.2 has a NULL pointer dereference in writefile() in util.c via a crafted build file.
  • Impact: Attackers can cause application crash or denial of service by triggering null pointer dereference.
  • Remediation: Update to the latest version where the issue is fixed or apply patches to handle null pointers properly.
  • Vulnerability type: null_pointer_dereference
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.00747
  • Epss percentile: 0.55607
  • Assignee: [email protected]
  • Published at: 2021-04-29T15:15:11Z
  • Age in days: 2035
  • Modified at: 2026-06-17T03:49:52Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-30218
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-476NULL Pointer Dereference

Public exploits

UrlSourceAdded date
https://github.com/michaelforney/samurai/issues/67nvd2021-04-29

References

UrlSourceTags
https://github.com/michaelforney/samurai/commit/e84b6d99c85043fa1ba54851ee500540ec206918nvdPatch, Third Party Advisory
https://github.com/michaelforney/samurai/issues/67nvdExploit, Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
samurai_project:samurai= 1.2nonvd/v1/products/samurai_project/samurai

Projects

RepositoryLink kindsIndexedUrl
michaelforney/samuraicommit, fix, issuesyes/v1/repositories/michaelforney/samurai

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-04-29
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts