CVE-2020-12135

Source
https://cve.org/CVERecord?id=CVE-2020-12135
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12135.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-12135
Downstream
Published
2020-04-24T01:15:11.430Z
Modified
2026-04-10T04:18:40.348699Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

bson before 0.8 incorrectly uses int rather than sizet for many variables, parameters, and return values. In particular, the bsonensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input.

References

Affected packages

Git / github.com/10gen-archive/mongo-c-driver-legacy

Affected ranges

Type
GIT
Repo
https://github.com/10gen-archive/mongo-c-driver-legacy
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.8"
        }
    ]
}

Affected versions

v0.*
v0.1
v0.2
v0.3
v0.3.1
v0.4
v0.5
v0.5.1
v0.5.2
v0.6
v0.7
v0.7.1

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "0.2.69"
            }
        ]
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12135.json"