samurai 1.2 has a NULL pointer dereference in writefile() in util.c via a crafted build file.
{
"source": [
"CPE_STRING",
"REFERENCES"
],
"cpe": "cpe:2.3:a:samurai_project:samurai:1.2:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "1.2"
},
{
"last_affected": "1.2"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-30218.json"
[
{
"signature_type": "Function",
"digest": {
"function_hash": "208479727932887472560017995287603309180",
"length": 371.0
},
"target": {
"function": "writefile",
"file": "util.c"
},
"source": "https://github.com/michaelforney/samurai/commit/e84b6d99c85043fa1ba54851ee500540ec206918",
"signature_version": "v1",
"id": "CVE-2021-30218-a59c9422",
"deprecated": false
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"81979215965542079586361518180416248158",
"313316081933114147512047608084223636088",
"292698495400644002514943506147566235223",
"142674882540023490960305744839035336723"
]
},
"target": {
"file": "util.c"
},
"source": "https://github.com/michaelforney/samurai/commit/e84b6d99c85043fa1ba54851ee500540ec206918",
"signature_version": "v1",
"id": "CVE-2021-30218-b4bc9159",
"deprecated": false
}
]
"2026-07-09T01:30:46Z"