A type confusion vulnerability exists in the OCaml runtime_events custom events cache, where a corrupt event stream can cause a crash by mixing event types. This issue arises if the runtime events producer and consumer run in separate processes and the producer is tricked into producing malformed data. A fix was merged in version 5.5.2 to validate event types and report corrupt streams on mismatch.