CVE-2026-87732OCaml mirage-crypto
Medium 6.2
Follow: this CVE · OCaml · OCaml mirage-crypto We alert you by email or Slack (account required).
- Priority
- 37
- CVSS 3.1
- 6.2
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 9, 2026
- Updated
- Sep 9, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
An issue was discovered in the mirage-crypto package before 2.2.0 for OCaml. The AES.GCM.authenticate_decrypt_into and Chacha20.authenticate_decrypt_into functions write the decrypted plaintext into a caller-provided buffer and only then compares the tag. On a forged tag, the functions returns false, but the destination buffer already holds the full plaintext.
What to do
- Apply the vendor's security update for mirage-crypto.
Affected products
- OCaml · mirage-crypto
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.