Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-48282

MEDIUM 6.6EPSS 82%

Deserializing compromised object with MongoDB .NET/C# Driver may cause remote code execution

Also known as GHSA-7j9m-j397-g4wx

Mitigation

  • Upgrade MongoDB.Driver to 2.19.0 or later.

Who should check

  • Projects that depend on NuGet package MongoDB.Driver (< 2.19.0)
  • Anyone running MongoDB Inc MongoDB .NET/C# Driver <= v2.18.0

Vulnerability facts

Affected
MongoDB.Driver < 2.19.0
Fixed in
2.19.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
2.10% chance of exploitation in 30 days (percentile 82, 2026-11-26)
CWE
CWE-502
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
NuGet MongoDB.Driver< 2.19.02.19.0osv
MongoDB Inc MongoDB .NET/C# Driver<= v2.18.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-48282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48282.md
Affected: MongoDB.Driver < 2.19.0
Fixed in: 2.19.0

Steps:
1. Search this machine and project for MongoDB.Driver (NuGet), MongoDB Inc MongoDB .NET/C# Driver: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-48282 being exploited?

There is no confirmed exploitation: CVE-2022-48282 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.10% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-48282?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2022-48282?

MongoDB.Driver < 2.19.0.

Is there a fix for CVE-2022-48282?

Yes. Fixed in 2.19.0. Upgrade MongoDB.Driver to 2.19.0 or later.

How do I check if I'm affected by CVE-2022-48282?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors