High
Security advisory
_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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-16790
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:19 UTC · Revision 1
Source evidence
_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.
osv:CVE-2018-16790
Complete source record
{
"id": "52bc93f76f6236099c5fcf4ed3ba8764e2137d1aad746bfa788b28d476b3146d",
"url": "https://osv.dev/vulnerability/CVE-2018-16790",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-16790",
"summary": "_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.",
"evidence": "osv:CVE-2018-16790",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-16790",
"aliases": [
"CVE-2018-16790"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mongodb/mongo-c-driver",
"type": "GIT",
"events": [
{
"introduced": "a690091bae086f267791bd2227400f2035de99e8"
},
{
"last_affected": "a690091bae086f267791bd2227400f2035de99e8"
},
{
"fixed": "0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:libbson:1.12.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.12.0"
},
{
"last_affected": "1.12.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.12.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16790.json",
"vanir_signatures": [
{
"id": "CVE-2018-16790-0cbcc3ef",
"digest": {
"threshold": 0.9,
"line_hashes": [
"230572384828147726758798177231607784127",
"193010568396572323432057629638187778761",
"308383410363642545101968445688044955292",
"130065544884910772829299049170521137569"
]
},
"source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
"target": {
"file": "src/libbson/tests/test-bson.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-16790-3343d43e",
"digest": {
"length": 5661,
"function_hash": "193941486342430174099491069527724778591"
},
"source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
"target": {
"file": "src/libbson/src/bson/bson-iter.c",
"function": "_bson_iter_next_internal"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16790-48ddd07c",
"digest": {
"length": 4620,
"function_hash": "5190524972303662446291243879713015595"
},
"source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
"target": {
"file": "src/libbson/tests/test-bson.c",
"function": "test_bson_validate"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-16790-f31c3ccb",
"digest": {
"threshold": 0.9,
"line_hashes": [
"25158063395939030907992834329443035559",
"151438777202799389720665076878289151096",
"76831124799274643912930820928241724466",
"248988458287290360667449641644212888333"
]
},
"source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
"target": {
"file": "src/libbson/src/bson/bson-iter.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:12:15Z"
}
}
],
"modified": "2026-10-24T14:12:15.867124803Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html",
"https://bugzilla.redhat.com/show_bug.cgi?id=1627923#c3",
"https://jira.mongodb.org/browse/CDRIVER-2819",
"https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:mongodb:libbson:1.12.0:*:*:*:*:*:*:*"
],
"vendor_product": "mongodb:libbson",
"extracted_events": [
{
"range": [
{
"introduced": "1.12.0"
},
{
"last_affected": "1.12.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-16790",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443378,
"published_at": "2018-09-10T05:29:00.25+00:00"
}