---
title: "CVE-2026-87732"
canonical_url: "https://pkgseek.com/security/CVE-2026-87732"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-87732

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.

CVE-2026-87732 is rated MEDIUM (6.2), with 2 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (6.2)
- **Affected builds**: 2
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | libmirage-crypto-ocaml | 2.0.0-1+b5 | — |
| Debian | trixie | libmirage-crypto-ocaml-dev | 2.0.0-1+b5 | — |
