CVE-2026-120194Json-glib: json-glib: infinite loop in json_path_query() with negative jsonpath slice step
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.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | json-glib | Fix pending | UBUNTU-CVE-2026-120194 | |
| Ubuntu 26.04 | json-glib | Under investigation | UBUNTU-CVE-2026-120194 | |
| Ubuntu 24.04 | json-glib | Under investigation | UBUNTU-CVE-2026-120194 | |
| Ubuntu 22.04 | json-glib | Under investigation | UBUNTU-CVE-2026-120194 | |
| Ubuntu 20.04 | json-glib | Fix pending | UBUNTU-CVE-2026-120194 | |
| Ubuntu 18.04 | json-glib | Fix pending | UBUNTU-CVE-2026-120194 | |
| Ubuntu 16.04 | json-glib | Fix pending | UBUNTU-CVE-2026-120194 | |
| Debian 14 | json-glib | Fix pending | DEBIAN-CVE-2026-120194 | |
| Debian 13 | json-glib | Fix pending | DEBIAN-CVE-2026-120194 | |
| Debian 12 | json-glib | Fix pending | DEBIAN-CVE-2026-120194 | |
| Red Hat Enterprise Linux 10 | json-glib | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | json-glib-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | json-glib | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | json-glib-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | json-glib | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | json-glib-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | json-glib | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | json-glib-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | json-glib-tests | Fix pending Affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift AI (RHOAI)
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.
References
- https://access.redhat.com/security/cve/CVE-2026-120194
- https://bugzilla.redhat.com/show_bug.cgi?id=2564418
- https://gitlab.gnome.org/GNOME/json-glib/-/issues/96
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.