LiteDB contains Deserialization of Untrusted Data
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mbdavid | LiteDB | before 5.0.13 | 5.0.13 | Patch available | CNA |
| — | LiteDB (NuGet) | before 5.0.13 | 5.0.13 | Patch available | GHSA-3x49-g6rc-c284 |
- LiteDB Vendormbdavid Affected before 5.0.13 Fixed in 5.0.13 Patch available CNA
- LiteDB (NuGet) Vendor— Affected before 5.0.13 Fixed in 5.0.13 Patch available GHSA-3x49-g6rc-c284
Remediation
- Fix · CNA LiteDB (mbdavid) Fixed in 5.0.13
- Fix · GHSA-3x49-g6rc-c284 LiteDB (NuGet) Fixed in 5.0.13 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23535
- 2026-10-03 Alias added: GHSA-3x49-g6rc-c284
References
Patch 2
Sources
- CVE-2022-23535 · CVE Program
- CVE-2022-23535 · NVD
- FIRST EPSS
- GHSA-3x49-g6rc-c284 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences