Skip to content
Fencer Vulns
no cvss —

OSEC-2026-22 json

Integer overflow in Unix.map_file

published 2026-10-23 16 d ago modified 2026-11-06 2 d ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

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](https://www.first.org/cvss/v4.0/user-guide#Assessing-Vulnerabilities-in-Software-Libraries-and-Similar). 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

Patch / fix

  • opam ocaml 4.14.5, 5.5.2

Affected packages

ecosystem package affected fixed in
opam ocaml
<4.14.5
>=5, <5.5.2
4.14.5
5.5.2

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.