CVE-2026-120194

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

Published Oct 31, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerable json-glib library contains a flaw in the JSONPath slice evaluator used by its json_path_query() function. When a slice expression with a negative step is processed, the evaluator can enter an infinite loop. An attacker who can supply malicious JSONPath expressions to an application that uses json_path_query() can force that application into a prolonged hang, effectively denying service to legitimate users.

Affected Systems

Red Hat Enterprise Linux 7–10 and Red Hat OpenShift Container Platform 4 installations include the vulnerable json-glib library. All current releases of these platforms that contain the unpatched version of the library are affected, as no specific version exclusions are listed.

Risk and Exploitability

The CVSS score of 7.5 indicates a high impact with a potential for remote exploitation if an application accepts untrusted JSON input. Because the EPSS score is unavailable, there is no reported exploitation probability, and the vulnerability is not listed in the CISA KEV catalog, the risk of current widespread exploitation is uncertain. The likely attack vector is remote, based on the ability of an attacker to supply a crafted JSONPath expression to a vulnerable application. Until a fix is deployed, the vulnerability remains a high-risk denial‑of‑service condition.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the Red Hat security update for json-glib as soon as it becomes available.
  • If a patch is not yet available, do not evaluate untrusted JSONPath expressions. Reject or avoid any slice expression using a negative step.
  • Prefer fixed, application‑defined path expressions and sanitize all JSON input to ensure only safe expressions are processed.

Generated by OpenCVE AI on October 31, 2026 at 11:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai
Vendors & Products Redhat openshift Ai
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
First Time appeared Json-glib
Json-glib json-glib
Red Hat
Red Hat enterprise Linux
Redhat openshift Container Platform
Vendors & Products Json-glib
Json-glib json-glib
Red Hat
Red Hat enterprise Linux
Redhat openshift Container Platform
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
Description 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.
Title Json-glib: json-glib: infinite loop in json_path_query() with negative jsonpath slice step
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-835
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 6:34 AM
Reserved
Oct 31, 2026, 9:49 AM
Status
Awaiting Analysis
Published
Oct 31, 2026, 10:16 AM
Modified
Nov 6, 2026, 7:17 AM
Severity
Important
Public date
Oct 29, 2026, 12:00 AM