1. Home
  2. Vulnerabilities
  3. CVE-2026-120194

CVE-2026-120194

Json-glib: json-glib: infinite loop in json_path_query() with negative jsonpath slice step

Published 31 Oct 2026 · modified 3 Dec 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 46/100

Summary

A flaw was found in json-glib. The JSONPath slice evaluator used by json_path_query() can enter an infinite loop when given a slice expression with a negative step. An application that evaluates attacker-controlled JSONPath expressions can be forced into a hang, leading to a denial of service.

Affected products and versions

Redhat (11 line(s))
Redhat
ProductVersionsFixed inSource
Hat Enterprise Linux 10 Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 10.2 Extended Update Support Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 7 Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 8 Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 9 Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 9.6 Extended Update Support Versions not specified — CNA (vendor or assigner)
Hat Enterprise Linux 9.8 Extended Update Support Versions not specified — CNA (vendor or assigner)
Hat OpenShift Container Platform 4 Versions not specified — CNA (vendor or assigner)
Hat OpenShift Container Platform 5 Versions not specified — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

Workaroundofficial source

Do not evaluate untrusted JSONPath expressions with json_path_query() or json_path_compile()/json_path_match() until a fix is available. Prefer fixed, application-defined path expressions. In particular, reject or avoid slice expressions that specify a negative step.

Source : CNA (vendor or assigner)

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-835 · Autre (CWE-835)

How this data is obtained and calculated