Skip to content
High 7.3

The cstruct package before 6.3.0 for OCaml mishandles indexes.

CVE-2026-89087 First seen on SecPulse

Summary

Vulnerability reported (CVE-2026-89087). Risk of unauthorized operations or information disclosure.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A weakness called CVE-2026-89087 was discovered in the affected product.
Severity is High (CVSS 7.3/10). If exploited, attackers can leak data or disrupt key functionality.
What you should do: update the affected software to the latest version. If unsure, ask your IT team or search the vendor's site for "the product CVE-2026-89087".

CVE-2026-89087 (the affected product). Severity: High / CVSSv3 7.3. Category: CWE-573.
Response plan:

  1. Check the vendor advisory for affected versions and the patched release.
  2. If a vulnerable version is running in production, schedule maintenance (urgency from KEV/CVSS).
  3. If no patch yet, mitigate via WAF rule, disabling the affected feature, etc.
  4. Monitor logs / SIEM for known IOC and PoC signatures of this CVE.
    PoCs and fix commits: see the 'References' section, MITRE, and NVD.
What is the problem

A weakness (CVE-2026-89087) in the affected product. A serious software flaw has been identified.

Affected scope

Target versions of the affected product (see vendor advisory). If running in production, identify exposure immediately.

Severity

Severity: High (CVSS 7.3/10). If exploited, attackers can leak data or disrupt key functionality.

How to fix

Update to the patched release as listed in the vendor advisory. (Typical mitigation pattern for CWE-573)

Workaround

If a patch is not yet available, consider disabling the affected feature, applying WAF rules, blocking via network ACLs, or isolating the vulnerable version.

Detection

Check version information, scan dependencies via SBOM, and monitor SIEM for IOC and PoC signatures related to this CVE.

Affected packages

PackageAffected → Fixed
opamcstruct
< 6.3.0→ 6.3.0

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Several functions in cstruct may use wrong data, leading to unexpected exceptions and return corrupted data.

Impact

  • Cstruct.filter_map writes retained bytes at their original input positions, producing corrupted output when earlier bytes are dropped.
  • Cstruct.tail ~rev:true removes two bytes instead of one and raises an exception for single-byte views.
  • Cstruct.cuts ~rev:true may compare input against the wrong data, split at incorrect positions, and construct results using offsets outside the requested view.
  • Cstruct.find and Cstruct.find_sub ~rev:true may return slices from the wrong location when operating on non-zero-offset views.

These are a set of logical indexing and bounds-calculation errors (CWE-682), and not direct memory-safety vulnerabilities. However, affected operations may return corrupted data, raise an unexpected exception, split input incorrectly, or return bytes outside the requested Cstruct view but still within its backing buffer.

In security-sensitive parsers, this could cause validation bypasses, denial of service, or unintended disclosure of adjacent buffer contents.

Workarounds

Users unable to upgrade cstruct should backport the corresponding source changes. There is no configuration-based mitigation since these are buggy library calls.

References

Discovered via Scrutineer and Deepseek GLM-5.3 Flash running locally.

Timeline

  • 2026-09-04: reported via GitHub to…

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details