{"id":"CVE-2022-48282","aliases":["CVE-2022-48282","GHSA-7j9m-j397-g4wx"],"related":[],"kind":"vulnerability","state":"published","title":"Deserializing compromised object with MongoDB .NET/C# Driver may cause remote code execution","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\n\nFollowing 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\n  *  Application must be running on a Windows host using the full .NET Framework, not .NET Core AND\n  *  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\n  *  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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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\n\nFollowing 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\n  *  Application must be running on a Windows host using the full .NET Framework, not .NET Core AND\n  *  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\n  *  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","source":"cvelist"},{"lang":"en","text":"Under very specific circumstances, 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","format":"markdown","source":"ghsa"}],"published":"2023-02-21T18:35:11.643Z","modified":"2026-06-17T05:14:54.437Z","severity":{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"v2.18.0","status":"affected"}],"vendor":"MongoDB Inc","product":"MongoDB .NET/C# Driver","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.19.0"}],"ecosystem":"NuGet","package":"MongoDB.Driver","purl":"pkg:nuget/MongoDB.Driver","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.19.0"}],"vendor":"mongodb","product":"c#_driver","cpe":"cpe:2.3:a:mongodb:c\\#_driver:*:*:*:*:*:mongodb:*:*","source":"nvd"}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-4475","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230324-0003/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48282","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mongodb/mongo-csharp-driver","tags":["package"],"sources":["ghsa"]},{"url":"https://jira.mongodb.org/CSHARP-4475","tags":["web"],"sources":["ghsa"]}],"credits":["Jonathan Birch of Microsoft Office Security"],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-03-11T19:19:47.914Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48282","url":"https://www.cve.org/CVERecord?id=CVE-2022-48282","licence":"CVE Terms of Use","modified":"2025-03-11T19:20:08.556Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7j9m-j397-g4wx","url":"https://github.com/advisories/GHSA-7j9m-j397-g4wx","licence":"CC-BY-4.0","modified":"2023-11-08T04:11:02.878Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48282","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48282","licence":"Public domain","modified":"2026-06-17T05:14:54.437Z"}],"updatedAt":"2026-11-25T22:58:18.732Z","epss":{"score":0.01436,"percentile":0.73933,"date":"2026-12-02T12:00:21.000Z"}}