{"schemaVersion":4,"id":"CVE-2018-9838","aliases":["MGASA-2019-0124","SUSE-SU-2018:0983-1","SUSE-SU-2018:1075-1","SUSE-SU-2018:1493-1","SUSE-SU-2018:1494-1","UBUNTU-CVE-2018-9838","DEBIAN-CVE-2018-9838"],"status":"published","duplicateOf":null,"title":null,"description":"The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml 4.06.0 has an integer overflow which, in situations where marshalled data is accepted from an untrusted source, allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted object.","dates":{"published":"2018-04-06T18:00:00.000Z","modified":"2024-08-05T07:24:56.307Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.04173,"percentile":0.91186,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.04173},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04216,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04137,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.04173,"percentile":0.91186}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.04173,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.04173,"percentile":0.91186}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"ocaml","name":"ocaml","label":"ocaml","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ocaml","purlType":"deb","versions":[{"text":"< 4.05.0-11","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.05.0-11","endInclusive":false}}],"versionsText":"< 4.05.0-11","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ocaml","name":"ocaml","label":"ocaml","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ocaml","purlType":"deb","versions":[{"text":"< 4.01.0-3ubuntu3.1+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.01.0-3ubuntu3.1+esm1","endInclusive":false}},{"text":"< 4.02.3-5ubuntu2+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.02.3-5ubuntu2+esm1","endInclusive":false}},{"text":"< 4.05.0-10ubuntu1+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.05.0-10ubuntu1+esm1","endInclusive":false}}],"versionsText":"< 4.01.0-3ubuntu3.1+esm1 | < 4.02.3-5ubuntu2+esm1 | < 4.05.0-10ubuntu1+esm1","eol":null,"hubHref":null},{"vendor":"mageia","product":"ocaml","name":"ocaml","label":"ocaml","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/ocaml","purlType":"rpm","versions":[{"text":"< 4.02.3-6.1.mga6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.02.3-6.1.mga6","endInclusive":false}}],"versionsText":"< 4.02.3-6.1.mga6","eol":null,"hubHref":null},{"vendor":"ocaml","product":"ocaml","name":"ocaml","label":"ocaml","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.06.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"4.06.0"}}],"versionsText":"4.06.0","eol":null,"hubHref":"/vendor/ocaml/ocaml"},{"vendor":"suse","product":"ocaml&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","name":"ocaml","label":"ocaml&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/ocaml&distro=SUSE Linux Enterprise Software Development Kit 11 SP4","purlType":"rpm","versions":[{"text":"< 4.02.1-4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.02.1-4.3.2","endInclusive":false}},{"text":"< 4.02.1-4.6.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.02.1-4.6.1","endInclusive":false}}],"versionsText":"< 4.02.1-4.3.2 | < 4.02.1-4.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"ocaml&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","name":"ocaml","label":"ocaml&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/ocaml&distro=SUSE Linux Enterprise Software Development Kit 12 SP3","purlType":"rpm","versions":[{"text":"< 4.03.0-8.3.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.03.0-8.3.1","endInclusive":false}},{"text":"< 4.03.0-8.6.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.03.0-8.6.8","endInclusive":false}}],"versionsText":"< 4.03.0-8.3.1 | < 4.03.0-8.6.8","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://caml.inria.fr/mantis/view.php?id=7765","label":"caml.inria.fr/mantis/view.php?id=7765","hostname":"caml.inria.fr","tags":["X Refsource MISC","Issue Tracking","Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202007-48","label":"security.gentoo.org/glsa/202007-48","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO"]},{"url":"https://advisories.mageia.org/MGASA-2019-0124.html","label":"advisories.mageia.org/MGASA-2019-0124.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22948","label":"bugs.mageia.org/show_bug.cgi?id=22948","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.opensuse.org/opensuse-updates/2018-04/msg00070.html","label":"lists.opensuse.org/opensuse-updates/2018-04/msg00070.html","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1088591","label":"bugzilla.suse.com/show_bug.cgi?id=1088591","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://lists.opensuse.org/opensuse-updates/2018-06/msg00016.html","label":"lists.opensuse.org/opensuse-updates/2018-06/msg00016.html","hostname":"lists.opensuse.org","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180983-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20180983-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1088591","label":"bugzilla.suse.com/1088591","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2018-9838","label":"www.suse.com/security/cve/CVE-2018-9838","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181075-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20181075-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181493-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20181493-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20181494-1/","label":"www.suse.com/support/update/announcement/2018/suse-su-20181494-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-9838","label":"ubuntu.com/security/CVE-2018-9838","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4778-1","label":"ubuntu.com/security/notices/USN-4778-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-9838","label":"www.cve.org/CVERecord?id=CVE-2018-9838","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-9838","label":"security-tracker.debian.org/tracker/CVE-2018-9838","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-4778-1"],"duplicates":[],"related":["USN-4778-1"]},"timeline":[{"kind":"published","date":"2018-04-06T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T07:24:56.307Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,4,98],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.04173,"stale":false,"promoted":null},{"type":"cvss","source":"nvd","date":"2024-08-05T07:24:56.307Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0","headline":true},{"type":"cvss","source":"nvd","date":"2024-08-05T07:24:56.307Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},{"type":"cvss","source":"osv_ubuntu","date":"2024-08-05T07:24:56.307Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"cvss","source":"osv_debian","date":"2024-08-05T07:24:56.307Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"}],"epss":{"value":0.04173,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T02:02:32.515Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T02:02:33.061Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T02:02:33.247Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T02:00:57.638Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T02:02:28.824Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T02:02:28.182Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T02:59:40.819Z","stale":false,"partial":false}}