Skip to main content

mirage-crypto-pk EUVDEUVD-2026-74621

| CVE-2026-87735 MEDIUM
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-09-09 mitre GHSA-7mc7-qjpc-23j7
4.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to RSA-consuming service
  2. Delivery
    Craft message below minimum RSA padding size
  3. Exploit
    Submit to RSA encrypt/decrypt endpoint
  4. Execution
    Trigger undocumented OCaml exception in mirage-crypto-pk
  5. Persist
    Crash connection handler or RSA worker
  6. Impact
    Partial service disruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

The attacker must be able to supply an RSA message input (plaintext for encryption or ciphertext for decryption) to an application using mirage-crypto-pk before version 2.3.0. The CVSS PR:L metric indicates that some authentication or access level is required - unauthenticated exploitation is not confirmed. The specific trigger condition is a message whose byte length falls below the minimum valid size for the RSA padding scheme in use; the exact threshold depends on key size and padding mode. Applications that independently validate message size before invoking the library are not exposed. Exploitation is further limited to the OCaml/MirageOS ecosystem, which has a small deployment footprint compared to mainstream cryptographic libraries.

Impact

The CVSS 4.3 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L correctly positions this as a low-severity, availability-only issue. The A:L rating implies partial disruption rather than total service collapse - the exception likely terminates a specific RSA operation or connection rather than the entire host. No CISA KEV listing and no POC code are identified in the available data; EPSS is absent from the input, so exploitation probability is unquantified but expected to be low given the niche OCaml/MirageOS deployment footprint. The 'Information Disclosure' tag in the source metadata conflicts directly with the CVSS C:N metric and the description; no confidentiality impact is established by any available signal. Real-world risk is limited to services that (1) accept attacker-controlled RSA inputs and (2) do not independently validate message size before invoking the library - a combination most likely in unikernel TLS endpoints or custom encrypted-payload APIs.

Exploit ScenarioDerived

A remote attacker with low-privilege access to a service performing RSA decryption - such as a TLS endpoint or an API accepting encrypted payloads backed by a MirageOS unikernel - submits a crafted ciphertext or plaintext whose byte length falls below the RSA operation's minimum valid size. mirage-crypto-pk raises an undocumented OCaml exception; if the application does not catch it, the connection handler or RSA worker crashes, disrupting availability for that session or thread. No public exploit code has been identified, but the attack is mechanically straightforward given knowledge of the minimum-message-size threshold.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 09, 2026

RSA operations in mirage-crypto-pk for OCaml before version 2.3.0 raise an undocumented exception when processing abnormally small messages during encryption or decryption. Any OCaml application - including MirageOS unikernel services - that exposes RSA operations to attacker-influenced inputs without upstream size validation can have those operations disrupted by a remote attacker with low-privilege access. No public exploit has been identified at time of analysis; the CVSS score of 4.3 (A:L only) reflects a limited, availability-focused impact with no confirmed confidentiality or integrity exposure.

RemediationAI

Upgrade mirage-crypto-pk to version 2.3.0 or later, which introduces proper input-length validation before RSA operations proceed; vendor-released patch is confirmed available. Opam users should run 'opam update && opam upgrade mirage-crypto-pk' to obtain the fix. If an immediate upgrade is not feasible, a targeted compensating control is to validate RSA message length against the padding scheme's minimum size (scheme-dependent, but typically at least 1 byte for raw RSA and larger for PKCS#1 v1.5 or OAEP) before passing input to the library - this prevents the undocumented exception from being raised at all. This workaround adds application-layer responsibility for a check the library should perform and must be applied at every call site. Advisory and patch details are at https://osv.dev/vulnerability/OSEC-2026-14.

Affected VersionsENISA

mirage-crypto-pk 0 <2.3.0

Affected Packages

euvd mirage_crypto_pk fix: 2.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mirage-crypto-pk is an OCaml library providing public-key cryptographic primitives (RSA, DSA, EC) primarily used within the MirageOS unikernel ecosystem. The affected CPE is cpe:2.3:a:ocaml:mirage-crypto-pk:*:*:*:*:*:*:*:*, covering all versions before 2.3.0. The root cause is CWE-1284 (Improper Validation of Specified Quantity in Input): the RSA implementation does not validate that the supplied message meets the minimum byte-length required by the padding scheme (PKCS#1 or OAEP) before performing the modular exponentiation. When a message is too short, an OCaml exception is raised rather than a structured error being returned. Because OCaml exceptions propagate up the call stack, callers that do not explicitly catch this undocumented exception will crash their handler, connection, or thread.

Know when Ocaml gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network-reachable RSA operations require low-privilege access to trigger; exception causes availability disruption only, with no confidentiality or integrity impact established.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Sep 09, 2026 - 05:18 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Rare
niche OCaml/MirageOS unikernel ecosystem library
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Ocaml

View all
CVE-2017-9772 CRITICAL
9.8 Jun 23

Insufficient sanitisation in the OCaml compiler versions 4.04.0 and 4.04.1 allows external code to be executed with rais

CVE-2015-8869 CRITICAL
9.1 Jun 13

OCaml before 4.03.0 does not properly handle sign extensions, which allows remote attackers to conduct buffer overflow a

CVE-2018-9838 CRITICAL
9.8 Apr 06

The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml 4.06.0 has an integer overflow w

CVE-2026-89086 CRITICAL
9.1 Sep 10

Signature verification bypass in the OCaml jose library (ulrikstrid/ocaml-jose) before 0.11.0 lets attackers forge valid

CVE-2017-9779 HIGH
7.8 Sep 07

OCaml compiler allows attackers to have unspecified impact via unknown vectors, a similar issue to CVE-2017-9772 "but wi

CVE-2026-28364 HIGH
7.8 Feb 27

Heap memory corruption in the OCaml runtime (before 4.14.3 and 5.x before 5.4.1) lets an attacker who can feed crafted M

CVE-2026-41082 HIGH
7.8 Apr 16

Arbitrary file write in OCaml opam before 2.5.1 allows a malicious package to escape its intended installation scope: a

CVE-2026-87734 HIGH
7.5 Sep 09

Remote denial of service in the utcp OCaml TCP userspace library before version 0.0.6 is possible via crafted out-of-ord

CVE-2026-89087 HIGH
7.3 Sep 10

Index mishandling in the OCaml cstruct library before 6.3.0 allows network-reachable attackers to trigger partial confid

CVE-2026-96609 HIGH
7.1 Sep 23

Denial of service in Robur Albatross (specifically the albatross-console component) versions 1.0.0 through 2.x before 2.

CVE-2026-87733 MEDIUM
6.2 Sep 09

ECDSA signature forgery is possible in mirage-crypto-ec before 2.2.0 for OCaml because the P256, P384, and P521 pub_of_o

CVE-2026-87732 MEDIUM
6.2 Sep 09

Authenticated decryption in mirage-crypto before 2.2.0 for OCaml violates the security invariant of AEAD schemes by writ

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy