A reachable assertion vulnerability exists in YARA 4.5.8 when loading crafted .yrc compiled rule files. An attacker can provide a malicious file with an invalid arena configuration (num_buffers=0) that triggers an assertion failure in yr_arena_get_ptr(), causing the application to terminate.
https://github.com/VirusTotal/yara/issues/2238
https://github.com/NOUIY/yara/commit/0cdff36723cd260243bb2b330bda555693354760