# CVE-2018-16790

- Priority: **Routine**
- Reason: Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2018-09-10 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2018-16790, DEBIAN-CVE-2018-16790
- Record: https://cvemate.com/vulnerability/CVE-2018-16790 · JSON: https://cvemate.com/vulnerability/CVE-2018-16790/json

## Description

```text
_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.
```

## Signals

- CVSS: 8.1 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- EPSS: 2.128%, percentile 82.557%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libbson-xs-perl (Debian): \< 0.8.4-2+deb12u1
- debian mongo-c-driver (Debian): \< 1.13.0-1
- ubuntu libbson (Ubuntu): \< 1.3.1-1ubuntu0.1~esm1 \| \< 1.9.2-1ubuntu0.1~esm2
- mongodb libbson: 1.12.0

## References

- <https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1627923#c3>
- <https://jira.mongodb.org/browse/CDRIVER-2819>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html>
- <https://ubuntu.com/security/CVE-2018-16790>
- <https://github.com/mongodb/mongo-c-driver/pull/537>
- <https://ubuntu.com/security/notices/USN-4812-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-16790>
- <https://security-tracker.debian.org/tracker/CVE-2018-16790>

---

Data as of 2026-12-05T04:20:01.324Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
