Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in json-glib. The JSONPath slice evaluator in json_path_query() can enter a non-terminating loop when processing slice expressions that use a negative step (for example, $[:5:-1]). The evaluator iterates with a loop condition that assumes a positive step (i < end while adding step each iteration). When start is less than end and step is negative, the loop index moves away from the termination condition, causing the calling process to hang and resulting in a denial of service. Exploitation requires an application to evaluate an attacker-controlled or otherwise untrusted JSONPath expression using the vulnerable API.