{"id":"CVE-2026-87735","aliases":["CVE-2026-87735","OSEC-2026-14"],"related":[],"kind":"vulnerability","state":"published","title":"RSA signature verification raises undocumented exception","summary":"An issue was discovered in the mirage-crypto-pk package before 2.3.0 for OCaml. There is an undocumented exception for a small message during RSA decryption or encryption.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the mirage-crypto-pk package before 2.3.0 for OCaml. There is an undocumented exception for a small message during RSA decryption or encryption.","source":"cvelist"},{"lang":"en","text":"The RSA decrypt and encrypt functions raise an Invalid_argument exception if the\nmessage is smaller than 2. This leads to X509 certificates with a signature\nvalue of 0 or 1 to throw this Invalid_argument exception instead of a proper\nerror.\n\n## Fix\n\nThe fix is to reuse the Insufficient_key exception, which is documented and\ncaught further up in the stack.\n\n## Timeline\n\n- July 28th 2026: report to security@ocaml.org\n- August 7th: release of mirage-crypto-pk 2.3.0 and security advisory","format":"markdown","source":"osec"}],"published":"2026-08-07T13:00:00.000Z","modified":"2026-11-06T13:45:03.713Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"OCaml Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-1284"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.3.0","status":"affected"}],"vendor":"OCaml","product":"mirage-crypto-pk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.0"}],"ecosystem":"opam","package":"mirage-crypto-pk","purl":"pkg:opam/mirage-crypto-pk","source":"osec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"a0f59a0c90eb067505b55a03d3bb104eacd6dd33"}],"repo":"https://github.com/mirage/mirage-crypto.git","source":"osec"}],"references":[{"url":"https://osv.dev/vulnerability/OSEC-2026-14","tags":[],"sources":["cvelist","nvd"]}],"credits":["Thomas Gazagnaire","Hannes Mehnert"],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-09T18:39:48.567Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87735","url":"https://www.cve.org/CVERecord?id=CVE-2026-87735","licence":"CVE Terms of Use","modified":"2026-09-09T18:39:57.065Z"},{"source":"osec","name":"OCaml Security Advisories","id":"OSEC-2026-14","url":"https://osv.dev/vulnerability/OSEC-2026-14","licence":"CC0-1.0","modified":"2026-11-06T13:45:03.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87735","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87735","licence":"Public domain","modified":"2026-09-09T19:17:50.430Z"}],"updatedAt":"2026-11-25T22:59:37.701Z","epss":{"score":0.00141,"percentile":0.0366,"date":"2026-12-02T12:00:21.000Z"}}