CVE-2022-23535
published high CVSS 3.1 · 7.3LiteDB contains Deserialization of Untrusted Data
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mbdavid | — | LiteDB< 5.0.13 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mbdavid | LiteDB | < 5.0.13 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
2Provider assertions
3GitHub_M · cna
LiteDB contains Deserialization of Untrusted Data
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b52c1717ce9c753085023b292aa521b31b5cb090311d39223ad5da833ac48753
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record