Deserialization of Untrusted Data in LiteDB - CVE-2022-23535

 

Deserialization of Untrusted Data in LiteDB - CVE-2022-23535

Published: February 24, 2023 / Updated: July 28, 2026


Vulnerability identifier: #VU139891
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-23535
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: LiteDB
Affected software:
LiteDB

Detailed vulnerability description

The vulnerability allows a remote attacker to load an unsafe object during deserialization.

The vulnerability exists due to unsafe deserialization in BsonMapper when processing a user-supplied JSON string containing the _type field. A remote attacker can send a specially crafted JSON string to load an unsafe object during deserialization.

The issue is exposed when application code accepts plain JSON input for direct insert or update operations and maps data to an object-typed field.


How to mitigate CVE-2022-23535

Install security update from vendor's website.

Sources