PT-2026-89583

CVE-2026-89087

·

Published

2026-09-10

·

Updated

2026-09-22

Description by

CVSS 3.1
7.3
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions cstruct versions prior to 6.3.0
Description The cstruct package for OCaml contains logical indexing and bounds-calculation errors. Several functions may use incorrect data, which can lead to unexpected exceptions or the return of corrupted data. Specifically, Cstruct.filter map() writes retained bytes at original input positions, causing corruption when bytes are dropped. The Cstruct.tail() function with rev:true removes two bytes instead of one and may raise exceptions for single-byte views. The Cstruct.cuts() function with rev:true may compare input against wrong data, split at incorrect positions, and use offsets outside the requested view. Additionally, Cstruct.find() and Cstruct.find sub() with rev:true may return slices from incorrect locations when using non-zero-offset views. In security-sensitive parsers, these issues could result in validation bypasses, denial of service, or unintended disclosure of adjacent buffer contents.
Recommendations Update cstruct to version 6.3.0. As a temporary workaround, backport the corresponding source changes to the affected version.
Exploitability
Fix
Vendors
Affected products
Related identifiers
OSEC-2026-20
Found an issue in the description? Have something to add? Feel free to write us 👾