CVE Catalog

CVE-2026-87732

MediumCVSS 6.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.08%

0th percentile - higher than 0% of all known CVEs

Summary

In the mirage-crypto package before version 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 compare the tag. On a forged tag, the functions return false, but the destination buffer already holds the full plaintext.

Risk Assessment

The risk includes potential disclosure of decrypted plaintext even when authentication fails, which could compromise data confidentiality in systems using this library.

Recommendation

Update the mirage-crypto package to version 2.2.0 or later, which includes a fix ensuring that plaintext is not written before tag verification.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS