# CVE-2026-89087: Cstruct indexing bugs can corrupt filtered output and reverse parsing results

- Severity: High 7.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 17% of CVEs (2026-11-30)
- Published: 2026-09-10T10:00:00.000Z
- Modified: 2026-11-06T13:45:06.494Z
- Also known as: OSEC-2026-20
- Weaknesses: CWE-573
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

The cstruct package before 6.3.0 for OCaml mishandles indexes.

(As written by CVE List.)

## Affected

- OCaml cstruct: before 6.3.0
- cstruct (opam): before 6.3.0
- https://github.com/mirage/ocaml-cstruct: before 936f1010d3e9914da9c5c8a4739e9278a37e1c3e

## Every score

- mitre: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- OCaml Security Advisories: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://osv.dev/vulnerability/OSEC-2026-20>
- <https://github.com/mirage/ocaml-cstruct/pull/324> (fix)

## Sources

- CVE List: [CVE-2026-89087](https://www.cve.org/CVERecord?id=CVE-2026-89087), CVE Terms of Use, modified 2026-09-14
- OCaml Security Advisories: [OSEC-2026-20](https://osv.dev/vulnerability/OSEC-2026-20), CC0-1.0, modified 2026-11-06
- NVD: [CVE-2026-89087](https://nvd.nist.gov/vuln/detail/CVE-2026-89087), Public domain, modified 2026-09-22

---

Page: https://cve.day/CVE-2026-89087 · Whole record: https://cve.day/CVE-2026-89087.json · Rebuilt by cve.day 2026-11-25T22:59:37.898Z
