Bug 2458076 (CVE-2026-39956) - CVE-2026-39956 jq: missing runtime type checks for _strindices lead to crash and limited memory disclosure
Summary: CVE-2026-39956 jq: missing runtime type checks for _strindices lead to crash ...
Keywords:
Status: NEW
Alias: CVE-2026-39956
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2458402
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-13 23:01 UTC by OSIDB Bzimport
Modified: 2026-04-14 18:19 UTC (History)
23 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-13 23:01:20 UTC
jq is a command-line JSON processor. In commits after 69785bf77f86e2ea1b4a20ca86775916889e91c9, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -DNDEBUG. This allows an attacker to crash jq trivially with input like _strindices(0), and by crafting a numeric value whose IEEE-754 bit pattern maps to a chosen pointer, achieve a controlled pointer dereference and limited memory read/probe primitive. Any deployment that evaluates untrusted jq filters against a release build is vulnerable. This issue has been patched in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03.


Note You need to log in before you can comment on or make changes to this bug.