Deserializing compromised object with MongoDB .NET/C# Driver may cause remote code execution
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB .NET/C# Driver | up to v2.18.0 | — | No fix listed | CNA |
| — | MongoDB.Driver (NuGet) | before 2.19.0 | 2.19.0 | Patch available | GHSA-7j9m-j397-g4wx |
- MongoDB .NET/C# Driver VendorMongoDB Affected up to v2.18.0 Fixed in — No fix listed CNA
- MongoDB.Driver (NuGet) Vendor— Affected before 2.19.0 Fixed in 2.19.0 Patch available GHSA-7j9m-j397-g4wx
Remediation
- Fix · GHSA-7j9m-j397-g4wx MongoDB.Driver (NuGet) Fixed in 2.19.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-48282
- 2026-10-03 Alias added: GHSA-7j9m-j397-g4wx
References
More MongoDB C# Driver vulnerabilities
- TI-2026-56248 NoSQL injection via unquoted constant GroupBy keys in LINQ pipeline translation CVSS 4.0MEDIUM 6.9
- TI-2026-60051 Regular expression injection via unescaped characters in LINQ query translation in MongoDB C# Driver CVSS 4.0HIGH 7.1
- TI-2026-56250 Connection-option injection via unescaped settings in the canonical MongoDB URL builder CVSS 4.0HIGH 7.1
- TI-2026-56251 KMS master key exposure via unredacted credential serialization in driver settings string CVSS 4.0MEDIUM 6.8
- TI-2026-60050 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C# Driver CVSS 4.0MEDIUM 6.1
- TI-2026-56249 NoSQL injection via array replacement bypassing update shape validation in driver write path CVSS 4.0MEDIUM 5.3
Sources
- CVE-2022-48282 · CVE Program
- CVE-2022-48282 · NVD
- FIRST EPSS
- GHSA-7j9m-j397-g4wx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences