LiteDB contains Deserialization of Untrusted Data
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
LiteDBNuGet | < 5.0.13 | 5.0.13 |
Affected products
2- mbdavid/LiteDBv5Range: < 5.0.13
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-3x49-g6rc-c284ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23535ghsaADVISORY
- github.com/mbdavid/LiteDB/commit/4382ff4dd0dd8b8b16a4e37dfd29727c5f70f93fghsax_refsource_MISCWEB
- github.com/mbdavid/LiteDB/commit/d72c6774e6a13de2cfcd7d477d3575efeb75c8f2ghsaWEB
- github.com/mbdavid/LiteDB/releases/tag/v5.0.13ghsaWEB
- github.com/mbdavid/LiteDB/security/advisories/GHSA-3x49-g6rc-c284ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.