CVE-2022-23535

CVSS V2 None CVSS V3 None
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.
Overview
  • CVE ID
  • CVE-2022-23535
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2023-02-24T23:15:10
  • Last Modified Date
  • 2023-03-06T18:52:10
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:litedb:litedb:*:*:*:*:*:.net:*:* 1 OR 5.0.13
History
Created Old Value New Value Data Type Notes
2023-04-17 05:26:30 Added to TrackCVE
2023-04-17 05:26:33 Weakness Enumeration new