CVE-2022-23535

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.

Category

7.3
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.40%
Vendor Advisory github.com
Affected: mbdavid LiteDB
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-23535?
CVE-2022-23535 has been scored as a high severity vulnerability.
How to fix CVE-2022-23535?
To fix CVE-2022-23535, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-23535 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-23535 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-23535?
CVE-2022-23535 affects mbdavid LiteDB.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.