CVE-2022-48282:
MongoDB .NET/C# Driver vulnerable to Deserialization of Untrusted Data
7.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.58284%
CWE
Published
2/21/2023
Updated
3/3/2023
KEV Status
No
Technology
C#
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
MongoDB.Driver | nuget | < 2.19.0 | 2.19.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure deserialization in the ObjectSerializer
class. The patch notes specifically mention hardening ObjectSerializer
by introducing an AllowedTypes
configuration to restrict deserialization targets. The CWE-502 classification and MongoDB's own advisory both point to deserialization of attacker-controlled type discriminators (_t) as the attack vector. The ObjectSerializer.Deserialize
method would be the primary entry point for this vulnerability as it handles polymorphic deserialization based on these discriminators.