PT-2026-135866

Published

2026-10-23

·

Updated

2026-10-23

Description by

CVSS 4.0
5.5
Medium
MetricsAV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P
ANT-2026-6W9NPC2Q mmap dimension product integer overflow

Fix

Use caml umul overflow instead of * when multiplying bigarray dimensions, which detects integer overflows and raise Failure. Negative positions are also rejected by raising Invalid argument.

Am I affected?

If either the dimensions or the file size in a call to Unix.map file from your code is user controllable then you are potentially affected.

Score notes

The vulnerability is in a library, and the CVSS score is calculated under worst case assumptions. For an actual application the score will depend on how much an attacker can control the input to this function (if at all).

Timeline

  • 2026-08-24: vulnerability was found
  • 2026-08-27: forwarded report to security@ocaml.org
  • 2026-09-29: fix merged to trunk
Exploitability
Fix
Vendors
Affected products
Related identifiers
OSEC-2026-22
Found an issue in the description? Have something to add? Feel free to write us 👾