Skip to main content

Ocaml CVE-2026-34353

| EUVDEUVD-2026-16555 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-03-27 mitre
5.9
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 3.1 score of 5.9 reflects a medium severity rating with specific characteristics: local attack vector (AV:L), high attack complexity (AC:H), no privilege requirement (PR:N), and confidentiality impact (C:H) but no integrity or availability impact. The high complexity factor suggests exploitation requires specific conditions or precise memory layout knowledge. The confidentiality-only impact aligns with information disclosure rather than system compromise. However, the local-only attack vector significantly limits real-world exploitability compared to remote vectors. No EPSS score, KEV status, or publicly disclosed proof-of-concept was provided in the intelligence data. The restricted attack vector (local only) and high complexity requirement suggest this represents a lower practical priority than the raw CVSS score might indicate, particularly in contexts where local code execution is already compromised. The vulnerability is most concerning in multi-tenant systems, containerized environments, or scenarios where untrusted local code processes external data.

Exploit ScenarioDerived

An attacker with local system access provides a specially crafted data file or network input to an OCaml application that uses Bigarray.reshape. By specifying reshape dimensions that, when multiplied together, overflow an integer type but wrap to a small value, the attacker causes allocation of a small buffer while the application proceeds with operations assuming the original large dimensions. Subsequent read operations traverse beyond the allocated buffer into adjacent memory, allowing the attacker to leak heap contents, potentially including cryptographic material, session tokens, or other sensitive data. The high attack complexity reflects the need for precise knowledge of the target process's memory layout and dimension calculation behavior.

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

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

Alert me

AnalysisAIv1 – Mar 27, 2026

OCaml's Bigarray.reshape function contains an integer overflow vulnerability that permits unauthenticated local attackers to read arbitrary memory contents when processing untrusted input. Affected versions through 4.14.3 allow an attacker with local access to trigger the overflow condition, bypassing memory protections and potentially exposing sensitive data including cryptographic keys or process memory. No public exploit code or active exploitation has been confirmed at time of analysis.

RemediationAI

Upgrade to a patched OCaml release beyond 4.14.3 once available from the official OCaml project. The upstream fix has been addressed in pull request #14674 on GitHub (https://github.com/ocaml/ocaml/pull/14674); however, the exact released version number containing this fix is not independently confirmed in available data. Monitor the OCaml project releases page and security advisories for the first tagged release incorporating this patch. Until patching is possible, restrict Bigarray.reshape operations on untrusted input by validating dimension parameters, implementing input sanitization to ensure reshape dimensions cannot trigger integer overflow conditions, and limiting the scope of untrusted data processed through Bigarray operations in multi-tenant or high-security contexts.

Affected VersionsENISA

OCaml 0 ≤4.14.3

Affected Packages

euvd ocaml no fix

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

The vulnerability exists in OCaml's Bigarray module, a component providing multi-dimensional array operations. The reshape function performs dimension calculation without proper bounds checking, allowing integer overflow during size computations. This is a classic CWE-190 (Integer Overflow or Wraparound) vulnerability where the calculated reshaped array size overflows, resulting in undersized memory allocation. When subsequent operations read from the Bigarray using the legitimate but overflowed dimension values, memory access extends beyond the allocated buffer into adjacent heap or process memory. The affected product is identified via CPE as cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:* covering all OCaml versions up to and including 4.14.3.

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

NVD PRIMARY 5.9 MEDIUM
AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
SUSE MEDIUM
Red Hat 5.9 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 27, 2026 - 04:55 nvd
MEDIUM 5.9

DescriptionCVE.org

In OCaml through 4.14.3, Bigarray.reshape allows an integer overflow, and resultant reading of arbitrary memory, when untrusted data is processed.

Executive ViewAI

Why It Matters

Organizations using OCaml should be aware of moderate risk from CVE-2026-34353, a integer overflow vulnerability rated CVSS 5.9. Exploitation could cause memory corruption or application crashes. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.0%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed

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