Description
The cstruct package before 6.3.0 for OCaml mishandles indexes.
Published: 2026-09-10
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Improper Index Handling
Action: Immediate Patch
AI Analysis

Impact

The cstruct package for OCaml before version 6.3.0 contains a flaw that mishandles indexes, allowing untrusted data to exceed expected bounds. This weakness can lead to memory corruption, potentially allowing an attacker to corrupt data structures or trigger a crash, thereby affecting confidentiality, integrity, or availability of the affected application. The identified weakness aligns with CWE-573, which describes scenarios where input data is not properly validated as a buffer offset.

Affected Systems

OCaml cstruct libraries with versions prior to 6.3.0 are vulnerable. Systems that compile or link against these older releases may be at risk if they process untrusted input that includes out‑of‑range indexes. Precise product or version details beyond the stated 6.3.0 cutoff are not provided in the advisory.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity vulnerability. No EPSS score is CISA KEV catalog. Exploitation would require an attacker to supply crafted input that triggers the out‑of‑bounds operation; the exact attack vector and conditions are not detailed, so the risk assessment relies on the high CVSS score and the potential for memory corruption.

Generated by OpenCVE AI on September 10, 2026 at 23:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OCaml cstruct to version 6.3.0 or newer
  • Add explicit bounds checking for indices before they are used with cstruct to prevent out-of-range access
  • Ensure that any untrusted input is validated or sanitized prior to being processed by cstruct to reduce risk of exploitation

Generated by OpenCVE AI on September 10, 2026 at 23:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Thu, 10 Sep 2026 23:30:00 +0000

Type Values Removed Values Added
Title Index Out‑of‑Bounds Vulnerability in OCaml cstruct

Thu, 10 Sep 2026 20:00:00 +0000

Type Values Removed Values Added
Description The cstruct package before 6.3.0 for OCaml mishandles indexes.
Weaknesses CWE-573
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-10T19:55:44.327Z

Reserved: 2026-09-10T19:55:43.954Z

Link: CVE-2026-89087

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-10T20:17:32.247

Modified: 2026-09-10T20:17:32.247

Link: CVE-2026-89087

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-10T23:15:08Z

Weaknesses
  • CWE-573

    Improper Following of Specification by Caller