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.
Published: 2026-10-31
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Sat, 31 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Sat, 31 Oct 2026 10:15:00 +0000

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'}


Subscriptions

Redhat Enterprise Linux Openshift
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-31T10:11:47.188Z

Reserved: 2026-10-31T09:49:21.347Z

Link: CVE-2026-120194

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-31T10:16:38.310

Modified: 2026-10-31T10:16:38.440

Link: CVE-2026-120194

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-29T00:00:00Z

Links: CVE-2026-120194 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-31T11:30:13Z

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')