CVE-2026-87733: Medium severity ocaml vulnerability

Published Sep 9, 2026
·
Updated

An issue was discovered in the mirage-crypto-ec function before 2.2.0 for OCaml. The ECDSA functions {P256,P384,P521}.Dsa.pubofoctets accept 0x00, the encoding of the point at infinity, as a public key. With that public key, signatures can be forged without a private key.

Affected Software

2 affected components
ocaml<2.2.0
mirage-crypto-ec<2.2.0

Event History

Sep 9, 2026
CVE Published
via MITRE·04:08 AM
Data Sourced
via MITRE·04:08 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to signature forgery?

Deployments using mirage-crypto-ec before 2.2.0 and calling P256.Dsa.pub_of_octets, P384.Dsa.pub_of_octets, or P521.Dsa.pub_of_octets on attacker-controlled public-key encodings are exposed if they accept the 0x00 point-at-infinity encoding.

2

What does an attacker need to exploit this issue?

An attacker needs to provide 0x00 as an ECDSA public key to one of the affected parsing functions. Using that public key, signatures can be forged without possession of a private key.

3

Is a private key or user interaction required for exploitation?

No. The supplied vector indicates no privileges and no user interaction are required, and the flaw allows forgery without a private key.

4

How can I determine whether my application is affected?

Check whether it uses mirage-crypto-ec earlier than 2.2.0 and parses public keys with the affected P256, P384, or P521 Dsa.pub_of_octets functions. Test whether a public-key input consisting of 0x00 is accepted.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203