CVE-2026-51291

SQLite · SQLite

A use-after-free vulnerability in the jsonCacheInsert function of SQLite 3.41 may lead to application crashes or arbitrary code execution.

Executive summary

A use-after-free vulnerability in SQLite 3.41 could allow an attacker to trigger a denial of service or potentially execute arbitrary code via malicious JSON input.

Vulnerability

This is a use-after-free vulnerability located in the jsonCacheInsert function of the JSON cache management module. The vulnerability is exploitable over the network by an unauthenticated attacker, provided the application allows the submission of malicious SQL or JSON inputs.

Business impact

With a CVSS score of 9.8, this vulnerability poses a severe risk to applications relying on SQLite for data processing. Successful exploitation can result in complete system compromise or persistent service disruption, impacting data integrity and availability.

Remediation

Immediate Action: Evaluate applications for the use of SQLite 3.41 and verify if they are susceptible to untrusted JSON input processing.

Proactive Monitoring: Monitor application logs for segmentation faults or unexpected crashes that may indicate memory corruption attempts.

Compensating Controls: Implement strict input validation and sanitization for all JSON data passed to the SQLite engine to prevent the triggering of the vulnerable code path.

Exploitation status

Public Exploit Available: No (unknown)

Analyst recommendation

While the technical barrier to exploitation is high, the critical CVSS score necessitates immediate assessment of all software stacks utilizing SQLite 3.41. Ensure that your development teams are aware of this flaw and prioritize upgrading to a secure version of the library as soon as a patch becomes available.