{"id":"CVE-2026-34353","aliases":["CVE-2026-34353","OSEC-2026-04"],"related":[],"kind":"vulnerability","state":"published","title":"Bigarray.reshape integer overflow","summary":"In OCaml through 4.14.3, Bigarray.reshape allows an integer overflow, and resultant reading of arbitrary memory, when untrusted data is processed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In OCaml through 4.14.3, Bigarray.reshape allows an integer overflow, and resultant reading of arbitrary memory, when untrusted data is processed.","source":"cvelist"},{"lang":"en","text":"The function `caml_ba_reshape`, part of the OCaml runtime (in runtime/bigarray.c), had a missing check for integer overflow when computing the size to be allocated. This leads to a segmentation fault.\n\nAny application using `Bigarray.reshape` (or `reshape_N`) with untrusted and unchecked input can result in a segmentation fault.\n\n## Timeline\n\n- 2026-06-18 security advisory released\n- 2026-06-15 OCaml 4.14.4 released\n- 2026-04-16 Florian Angeletti backported the fix to the 4.14 branch\n- 2026-04-15 Stephen Dolan proposed fix https://github.com/ocaml/ocaml/pull/14691\n- 2026-03-18 Andriy Sultanov reported https://github.com/ocaml/ocaml/issues/14655","format":"markdown","source":"osec"}],"published":"2026-03-27T04:55:58.294Z","modified":"2026-11-19T10:30:06.555Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"OCaml Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"4.14.3","status":"affected"}],"vendor":"OCaml","product":"OCaml","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.14.4"}],"ecosystem":"opam","package":"ocaml","purl":"pkg:opam/ocaml","source":"osec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"1ec6b6e8ef9d30fc1d8bac71a6646c2ef78ea90b"}],"repo":"https://github.com/ocaml/ocaml","source":"osec"},{"ranges":[{"status":"affected","lastAffected":"4.14.3"}],"vendor":"ocaml","product":"ocaml","cpe":"cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ocaml/ocaml/issues/14655","tags":["issue-tracking","report"],"sources":["cvelist","osec","nvd"]},{"url":"https://github.com/ocaml/ocaml/pull/14674","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ocaml/ocaml/pull/14691","tags":["fix"],"sources":["osec"]}],"credits":["Andriy Sultanov","Stephen Dolan","Xavier Leroy","Hannes Mehnert"],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-27T13:39:53.338Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34353","url":"https://www.cve.org/CVERecord?id=CVE-2026-34353","licence":"CVE Terms of Use","modified":"2026-03-27T13:45:47.350Z"},{"source":"osec","name":"OCaml Security Advisories","id":"OSEC-2026-04","url":"https://osv.dev/vulnerability/OSEC-2026-04","licence":"CC0-1.0","modified":"2026-11-19T10:30:06.555Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34353","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34353","licence":"Public domain","modified":"2026-06-17T10:38:55.950Z"}],"updatedAt":"2026-11-25T22:59:17.370Z","epss":{"score":0.0013,"percentile":0.02828,"date":"2026-12-01T12:00:22.000Z"}}