CVE-2026-38992: Php Sqlite Jsonpath Unsanitized Field Concatenation

A SQLite JSON path is built by concatenating a field-name parameter to a '$' / '$.' prefix without escaping single quotes or backslashes. The resulting path is typically interpolated into single-quoted SQL string literals (e.g., json_extract(document, '$.field'), json_each, json_type, json_array_length). An attacker-controlled field name containing a single

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-38992-php-sqlite-jsonpath-unsanitized-field-concatenation --engine opengrep

Description

A SQLite JSON path is built by concatenating a field-name parameter to a '$' / '$.' prefix without escaping single quotes or backslashes. The resulting path is typically interpolated into single-quoted SQL string literals (e.g., json_extract(document, '$.field'), json_each, json_type, json_array_length). An attacker-controlled field name containing a single