{"schemaVersion":3,"id":"CVE-2018-16790","aliases":["UBUNTU-CVE-2018-16790","DEBIAN-CVE-2018-16790"],"status":"published","duplicateOf":null,"title":null,"description":"_bson_iter_next_internal in bson-iter.c in libbson 1.12.0, as used in MongoDB mongo-c-driver and other products, has a heap-based buffer over-read via a crafted bson buffer.","dates":{"published":"2018-09-10T05:00:00.000Z","modified":"2025-11-03T19:25:21.191Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","exploitability":7.2,"impact":8.7,"computed":true}]},"epss":{"probability":0.02128,"percentile":0.8166,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.00899999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02137},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02518,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02128,"percentile":0.8166}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02518,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02137,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02128,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02128,"percentile":0.8166}]},"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-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"libbson-xs-perl","name":"libbson-xs-perl","label":"libbson-xs-perl","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libbson-xs-perl","purlType":"deb","versions":[{"text":"< 0.8.4-2+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.4-2+deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"mongo-c-driver","name":"mongo-c-driver","label":"mongo-c-driver","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mongo-c-driver","purlType":"deb","versions":[{"text":"< 1.13.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libbson","name":"libbson","label":"libbson","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libbson","purlType":"deb","versions":[{"text":"< 1.3.1-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.9.2-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.1-1ubuntu0.1~esm1 | < 1.9.2-1ubuntu0.1~esm2","eol":null,"hubHref":null},{"vendor":"mongodb","product":"libbson","name":"libbson","label":"libbson","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.12.0","eol":null,"hubHref":"/vendor/mongodb/libbson"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84","label":"github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84","hostname":"github.com","tags":["X Refsource CONFIRM","Patch"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1627923#c3","label":"bugzilla.redhat.com/show_bug.cgi?id=1627923","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Third Party Advisory"]},{"url":"https://jira.mongodb.org/browse/CDRIVER-2819","label":"jira.mongodb.org/browse/CDRIVER-2819","hostname":"jira.mongodb.org","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory","REPORT"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html","label":"lists.debian.org/debian-lts-announce/2025/05/msg00012.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2018-16790","label":"ubuntu.com/security/CVE-2018-16790","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/mongodb/mongo-c-driver/pull/537","label":"github.com/mongodb/mongo-c-driver/pull/537","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4812-1","label":"ubuntu.com/security/notices/USN-4812-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-16790","label":"www.cve.org/CVERecord?id=CVE-2018-16790","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-16790","label":"security-tracker.debian.org/tracker/CVE-2018-16790","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4160-1","USN-4812-1"],"duplicates":[],"related":["USN-4812-1"]},"timeline":[{"kind":"published","date":"2018-09-10T05:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T19:25:21.191Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:23:29.042Z","stale":false,"partial":false}}