{"id":"OSEC-2026-25","aliases":["OSEC-2026-25"],"related":[],"kind":"vulnerability","state":"published","title":"Heap buffer overflow in the OCaml `runtime_events` consumer when parsing an oversized custom user event","summary":"ANT-2026-0JXJVEVY\n\nCustom events maintains a cache of user events, it is possible to have a corrupt stream that has a valid message with one message type (which can be custom/unit/span/int) and then has the same event with a different message type.\n\nThis would never be encountered in a real program but can lead to a crash.\n\n## Fix\n\nCheck message lengths for all runtime event types, report a corrupt stream on mismatch.\n\n## Am I affected?\n\nIf the runtime events producer and consumer run in separate processes, and the producer can be tricked into producing malformed data.\n\n## Timeline\n\n- 2026-08-24: vulnerability was found\n- 2026-08-27: forwarded report to security@ocaml.org\n- 2027-09-05: fix merged to trunk","summaryFormat":"markdown","summarySource":"osec","descriptions":[{"lang":"en","text":"ANT-2026-0JXJVEVY\n\nCustom events maintains a cache of user events, it is possible to have a corrupt stream that has a valid message with one message type (which can be custom/unit/span/int) and then has the same event with a different message type.\n\nThis would never be encountered in a real program but can lead to a crash.\n\n## Fix\n\nCheck message lengths for all runtime event types, report a corrupt stream on mismatch.\n\n## Am I affected?\n\nIf the runtime events producer and consumer run in separate processes, and the producer can be tricked into producing malformed data.\n\n## Timeline\n\n- 2026-08-24: vulnerability was found\n- 2026-08-27: forwarded report to security@ocaml.org\n- 2027-09-05: fix merged to trunk","format":"markdown","source":"osec"}],"published":"2026-10-23T21:30:00.000Z","modified":"2026-11-19T10:30:06.447Z","severities":[{"scorer":"OCaml Security Advisories","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"}],"cwes":[],"affected":[{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.5.2"}],"ecosystem":"opam","package":"ocaml","purl":"pkg:opam/ocaml","source":"osec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"2247294d06464df0273479f41b0418655918da27"},{"type":"git","introduced":"0","status":"affected","fixed":"9dcf0c86201cf5e8ece56c6bb5f61fc4d92fb74a"}],"repo":"https://github.com/ocaml/ocaml","source":"osec"}],"references":[],"credits":["Anthropic","Hannes Mehnert","Edwin Török","Olivier Nicole","Sadiq Jaffer"],"sources":[{"source":"osec","name":"OCaml Security Advisories","id":"OSEC-2026-25","url":"https://osv.dev/vulnerability/OSEC-2026-25","licence":"CC0-1.0","modified":"2026-11-19T10:30:06.447Z"}],"updatedAt":"2026-11-25T22:56:18.366Z"}