All reports
Medium

Bigarray.reshape integer overflow

Affected versions

OCaml / opamocaml
Affected versions
<4.14.4
Fixed version
4.14.4
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-34353

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-22

Description

The function caml_ba_reshape, part of the OCaml runtime (in runtime/bigarray.c), had a missing check for integer overflow when computing the size to be allocated. This leads to a segmentation fault.

Any application using Bigarray.reshape (or reshape_N) with untrusted and unchecked input can result in a segmentation fault.

Timeline

Links

Credits

  • Andriy Sultanov
  • Stephen Dolan
  • Xavier Leroy
  • Hannes Mehnert