All reports
Medium

EC public key out of bounds read

Affected versions

OCaml / opammirage-crypto-ec
Affected versions
Unknown
Fixed version
2.3.0

Exploitation

CVE-2026-87736

Probability of exploitation in the next 30 days: 0.36%

FIRST EPSS · 2026-11-23

Description

The internal Point.of_octets function is missing a length check for compressed points, and thus is raising an exception when a short buffer is provided. This affects all NIST curves (P-256, P-384, P-521) and both Dsa.pub_of_octets and Dh.key_exchange functions.

Fix

The fix is to check the length of the provided buffer.

Timeline

  • July 28th 2026: report to security@ocaml.org

  • August 7th: release of mirage-crypto-pk 2.3.0 and security advisory

Credits

  • Thomas Gazagnaire
  • Hannes Mehnert