CVE-2022-23535 json
LiteDB contains Deserialization of Untrusted Data
published 3y ago modified 4mo ago also GHSA-3x49-g6rc-c284 , EUVD-2023-0618
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
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.
Patch / fix
- nuget LiteDB 5.0.13
- litedb litedb 5.0.13
Is CVE-2022-23535 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.70% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | LiteDB | <5.0.13 |
5.0.13 |
Affected products
- mbdavid LiteDB
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/mbdavid/LiteDB/commit/4382ff4dd0dd8b8b16a4e37dfd29727c5f70f93f
web, patch
-
github.com
/mbdavid/LiteDB/security/advisories/GHSA-3x49-g6rc-c284
web, mitigation, patch, vendor-advisory
-
github.com
/mbdavid/LiteDB/commit/d72c6774e6a13de2cfcd7d477d3575efeb75c8f2
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-23535
advisory
-
github.com
/mbdavid/LiteDB
package
-
github.com
/mbdavid/LiteDB/releases/tag/v5.0.13
web
Sources
- CVE List CVE-2022-23535
- GitHub Advisory GHSA-3x49-g6rc-c284
- NVD CVE-2022-23535
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.