CVE-2022-23535CWE-502

LiteDB contains Deserialization of Untrusted Data

High · published February 24, 2023

CVSS v3.1
7.3
EPSS
1%
Percentile
52.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.3 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00699 · 52.6th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2023-02-24T22:40Z
EPSS history
Timeline
  • 24 FEB 22:40Z
    LiteDB contains Deserialization of Untrusted Data
    cvelistv5