SecurityContext

CVE-2022-48282: MongoDB .NET/C# Driver - Insecure Deserialization

  • Cve: CVE-2022-48282
  • Name: MongoDB .NET/C# Driver - Insecure Deserialization
  • Description: Under very specific circumstances (see Required configuration section below), a privileged user is able to cause arbitrary code to be executed which may cause further disruption to services. This is specific to applications written in C#. This affects all MongoDB .NET/C# Driver versions prior to and including v2.18.0 Following configuration must be true for the vulnerability to be applicable: * Application must written in C# taking arbitrary data from users and serializing data using _t without any validation AND * Application must be running on a Windows host using the full .NET Framework, not .NET Core AND * Application must have domain model class with a property/field explicitly of type System.Object or a collection of type System.Object (against MongoDB best practice) AND * Malicious attacker must have unrestricted insert access to target database to add a _t discriminator."Following configuration must be true for the vulnerability to be applicable
  • Impact: Attackers can execute arbitrary code on the server, potentially leading to full system compromise or service disruption.
  • Remediation: Update to MongoDB .NET/C# Driver version 2.18.1 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: admin_privileges
  • Requirements: Attacker needs unrestricted insert access to the database and specific application configuration.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01379
  • Epss percentile: 0.72816
  • Assignee: [email protected]
  • Published at: 2023-02-21T19:15:10Z
  • Age in days: 1372
  • Modified at: 2026-06-17T05:14:54Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-48282
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-502Deserialization of Untrusted Data

Hackerone

  • Reports: 3
  • Rank: 3240

References

Same in every row:

  • Source: nvd
UrlTags
https://jira.mongodb.org/browse/CSHARP-4475Patch, Vendor Advisory
https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0Release Notes
https://security.netapp.com/advisory/ntap-20230324-0003/

Products

ProductAffectedPlatform boundSourcesUrl
mongodb:c#_driver< 2.19.0nonvd/v1/products/mongodb/c#_driver

Projects

RepositoryLink kindsIndexedUrl
mongodb/mongo-csharp-driverpackage, releasesyes/v1/repositories/mongodb/mongo-csharp-driver

Index

  • Repositories: 32
  • Repositories high signal: 27
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 3
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts