CVE-2018-16790

Source
https://cve.org/CVERecord?id=CVE-2018-16790
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16790.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-16790
Downstream
Published
2018-09-10T05:29:00.250Z
Modified
2026-07-09T00:37:50.570190Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

bsoniternextinternal 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.

References

Affected packages

Git / github.com/mongodb/mongo-c-driver

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/mongo-c-driver
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:mongodb:libbson:1.12.0:*:*:*:*:*:*:*",
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "1.12.0"
        },
        {
            "last_affected": "1.12.0"
        }
    ]
}

Affected versions

1.*
1.12.0

Database specific

vanir_signatures_modified
"2026-07-09T00:37:50Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16790.json"
vanir_signatures
[
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "230572384828147726758798177231607784127",
                "193010568396572323432057629638187778761",
                "308383410363642545101968445688044955292",
                "130065544884910772829299049170521137569"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2018-16790-0cbcc3ef",
        "source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
        "target": {
            "file": "src/libbson/tests/test-bson.c"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 5661.0,
            "function_hash": "193941486342430174099491069527724778591"
        },
        "id": "CVE-2018-16790-3343d43e",
        "source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
        "target": {
            "function": "_bson_iter_next_internal",
            "file": "src/libbson/src/bson/bson-iter.c"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 4620.0,
            "function_hash": "5190524972303662446291243879713015595"
        },
        "id": "CVE-2018-16790-48ddd07c",
        "source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
        "target": {
            "function": "test_bson_validate",
            "file": "src/libbson/tests/test-bson.c"
        }
    },
    {
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "25158063395939030907992834329443035559",
                "151438777202799389720665076878289151096",
                "76831124799274643912930820928241724466",
                "248988458287290360667449641644212888333"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2018-16790-f31c3ccb",
        "source": "https://github.com/mongodb/mongo-c-driver/commit/0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84",
        "target": {
            "file": "src/libbson/src/bson/bson-iter.c"
        }
    }
]