{"id":"CVE-2022-23535","published":"2023-02-24T22:40:06Z","modified":"2025-03-10T21:06:16Z","title":"LiteDB contains Deserialization of Untrusted Data","vendor":"mbdavid","product":"LiteDB","tier":"tail","description":{"text":"LiteDB is a small, fast and lightweight .NET NoSQL embedded database. Versions prior to 5.0.13 are subject to Deserialization of Untrusted Data. LiteDB uses a special field in JSON documents to cast different types from `BsonDocument` to POCO classes. When instances of an object are not the same of class, `BsonMapper` use a special field `_type` string info with full class name with assembly to be loaded and fit into your model. If your end-user can send to your app a plain JSON string, deserialization can load an unsafe  object to fit into your model. This issue is patched in version 5.0.13 with some basic fixes to avoid this, but is not 100% guaranteed when using `Object` type. The next major version will contain an allow-list to select what kind of Assembly can be loaded. Workarounds are detailed in the vendor advisory.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00699,"percentile":0.54044,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/mbdavid/LiteDB/security/advisories/GHSA-3x49-g6rc-c284","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mbdavid/LiteDB/commit/4382ff4dd0dd8b8b16a4e37dfd29727c5f70f93f","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.81},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"mbdavid","affectedVersions":[{"vendor":"mbdavid","product":"LiteDB","versions":["< 5.0.13"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-10T20:58:20.417717Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"LiteDB","vulnerableRanges":["<5.0.13"],"patched":["5.0.13"],"from":["GHSA-3x49-g6rc-c284"],"provenance":"source"}],"summary":{"text":"LiteDB, a small embedded NoSQL database for .NET, contains a deserialization of untrusted data flaw in its BsonMapper, which uses a _type field in JSON documents to load and instantiate arbitrary classes by full name and assembly. An attacker who can get a crafted plain JSON string into an application that deserializes it into an Object-typed field could cause an unsafe object to be loaded, with the basic fixes in version 5.0.13 not fully guaranteeing protection in that case.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:32Z"},"euvd":{"id":"EUVD-2023-0618","exploited":false,"provenance":"source"}}