Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in rethinkdb (src/cjson modules). This vulnerability is associated with program files cJSON.Cc. This issue affects rethinkdb: through v2.4.4.
The vulnerability consists of copying input data to a memory buffer without prior verification of its size — a classic buffer overflow error (CWE-120). It affects the cJSON module built into the RethinkDB source code (file src/cjson/cJSON.Cc). An attacker can provide specially crafted input data that overflows the buffer and overwrites adjacent memory areas. The attack vector is network-based, requires no authentication or user interaction.
An attacker may gain the ability to execute arbitrary code (RCE) or cause a database process crash. According to CVSS 4.0 vector, the vulnerability has a critical impact on the confidentiality, integrity, and availability of both the affected system and related systems.
Patches available from the vendor should be applied according to the references. A fix is available for review in a pull request on the GitHub repository: https://github.com/rethinkdb/rethinkdb/pull/7163. Until an update is applied, it is recommended to restrict network access to RethinkDB instances only from trusted hosts (e.g., using a firewall).
RethinkDB in all versions up to and including v2.4.4.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:C/RE:M/U:Red