{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-39979", "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "state": "PUBLISHED", "assignerShortName": "GitHub_M", "dateReserved": "2026-04-08T00:01:47.628Z", "datePublished": "2026-04-13T22:18:56.252Z", "dateUpdated": "2026-07-10T12:05:54.906Z" }, "containers": { "cna": { "title": "jq: Out-of-Bounds Read in jv_parse_sized() Error Formatting for Non-NUL-Terminated Counted Buffers", "problemTypes": [ { "descriptions": [ { "cweId": "CWE-125", "lang": "en", "description": "CWE-125: Out-of-bounds Read", "type": "CWE" } ] } ], "metrics": [ { "cvssV4_0": { "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "baseScore": 6.9, "baseSeverity": "MEDIUM", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N", "version": "4.0" } } ], "references": [ { "name": "https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p" }, { "name": "https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f" } ], "affected": [ { "vendor": "jqlang", "product": "jq", "versions": [ { "version": "< 2f09060afab23fe9390cce7cb860b10416e1bf5f", "status": "affected" } ] } ], "providerMetadata": { "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M", "dateUpdated": "2026-04-13T22:18:56.252Z" }, "descriptions": [ { "lang": "en", "value": "jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is found rather than respecting the caller-supplied length. This means that when malformed JSON is passed in a non-NUL-terminated buffer, the error construction logic performs an out-of-bounds read past the end of the buffer. The vulnerability is reachable by any libjq consumer calling jv_parse_sized() with untrusted input, and depending on memory layout, can result in memory disclosure or process termination. The issue has been patched in commit 2f09060afab23fe9390cce7cb860b10416e1bf5f." } ], "source": { "advisory": "GHSA-2hhh-px8h-355p", "discovery": "UNKNOWN" } }, "adp": [ { "references": [ { "url": "https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p", "tags": [ "exploit" ] } ], "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2026-04-14T13:43:11.607182Z", "id": "CVE-2026-39979", "options": [ { "Exploitation": "poc" }, { "Automatable": "yes" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-04-14T13:43:15.227Z" } }, { "affected": [ { "cpes": [ "cpe:/a:redhat:openshift:4.12::el8" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.12", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.13::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.13", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.14::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.14", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.15::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.15", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.16::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.16", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.17::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.17", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.18::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.18", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:openshift:4.19::el9" ], "defaultStatus": "affected", "product": "Red Hat OpenShift Container Platform 4.19", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:enterprise_linux:8::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream (v. 8)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_aus:8.4::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream AUS (v.8.4)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_eus_long_life:8.4::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_aus:8.6::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream AUS (v.8.6)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_e4s:8.6::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream E4S (v.8.6)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_tus:8.6::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream TUS (v.8.6)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_e4s:8.8::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream E4S (v.8.8)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_tus:8.8::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream TUS (v.8.8)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_e4s:9.0::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream E4S (v.9.0)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_e4s:9.2::appstream" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux AppStream E4S (v.9.2)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:enterprise_linux_eus:10.0" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux BaseOS EUS (v. 10.0)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:enterprise_linux:10.1", "cpe:/o:redhat:enterprise_linux:10.2" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux BaseOS (v. 10)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:rhel_eus:9.4::baseos" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux BaseOS EUS (v.9.4)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:rhel_eus:9.6::baseos" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux BaseOS EUS (v.9.6)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:enterprise_linux:9::baseos" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux BaseOS (v. 9)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:enterprise_linux_eus:10.0" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/o:redhat:enterprise_linux:10.1", "cpe:/o:redhat:enterprise_linux:10.2" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:enterprise_linux:8::crb" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux CRB (v. 8)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_eus:9.4::crb" ], "defaultStatus": "affected", "product": "Red Hat CodeReady Linux Builder EUS (v.9.4)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:rhel_eus:9.6::crb" ], "defaultStatus": "affected", "product": "Red Hat CodeReady Linux Builder EUS (v.9.6)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:enterprise_linux:9::crb" ], "defaultStatus": "affected", "product": "Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:ai_inference_server:3.2::el9" ], "defaultStatus": "affected", "product": "Red Hat AI Inference Server 3.2", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:ai_inference_server:3.3::el9" ], "defaultStatus": "affected", "product": "Red Hat AI Inference Server 3.3", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:hummingbird:1" ], "defaultStatus": "affected", "product": "Red Hat Hardened Images", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:ansible_automation_platform:2" ], "defaultStatus": "affected", "product": "Red Hat Ansible Automation Platform 2", "vendor": "Red Hat" }, { "cpes": [ "cpe:/a:redhat:ceph_storage:4" ], "defaultStatus": "affected", "product": "Red Hat Ceph Storage 4", "vendor": "Red Hat" } ], "datePublic": "2026-04-13T22:18:56.252Z", "descriptions": [ { "lang": "en", "value": "A flaw was found in jq, a command line JSON processor, specifically in the libjq API. Parsing a malformed JSON input from a non-NUL-terminated buffer using the `jv_parse_sized` function can cause an out-of-bounds read, resulting in an application crash and a possible memory disclosure within the error message generated by the parser." } ], "metrics": [ { "other": { "content": { "namespace": "https://access.redhat.com/security/updates/classification/", "value": "Important" }, "type": "Red Hat severity rating" } }, { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.2, "baseSeverity": "HIGH", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H", "version": "3.1" }, "format": "CVSS" } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-125", "description": "Out-of-bounds Read", "lang": "en", "type": "CWE" } ] } ], "references": [ { "tags": [ "vdb-entry", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/security/cve/CVE-2026-39979" }, { "name": "RHBZ#2458077", "tags": [ "issue-tracking", "x_refsource_REDHAT" ], "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2458077" }, { "tags": [ "x_sadp-csaf-vex" ], "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39979.json" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:26528" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:26542" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:28887" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:23233" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:25044" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:34098" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:25181" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:23245" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:16252" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18048" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18047" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18046" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18045" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18044" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18040" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:16692" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:19151" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18043" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:18042" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:16693" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:19365" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:25096" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:30078" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:30089" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:30088" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:30087" }, { "tags": [ "vendor-advisory", "x_refsource_REDHAT" ], "url": "https://access.redhat.com/errata/RHSA-2026:8579" } ], "solutions": [ { "lang": "en", "value": "RHSA-2026:26528: Red Hat OpenShift Container Platform 4.12" }, { "lang": "en", "value": "RHSA-2026:26542: Red Hat OpenShift Container Platform 4.13" }, { "lang": "en", "value": "RHSA-2026:28887: Red Hat OpenShift Container Platform 4.14" }, { "lang": "en", "value": "RHSA-2026:23233: Red Hat OpenShift Container Platform 4.15" }, { "lang": "en", "value": "RHSA-2026:25044: Red Hat OpenShift Container Platform 4.16" }, { "lang": "en", "value": "RHSA-2026:34098: Red Hat OpenShift Container Platform 4.17" }, { "lang": "en", "value": "RHSA-2026:25181: Red Hat OpenShift Container Platform 4.18" }, { "lang": "en", "value": "RHSA-2026:23245: Red Hat OpenShift Container Platform 4.19" }, { "lang": "en", "value": "RHSA-2026:16252: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux CRB (v. 8)" }, { "lang": "en", "value": "RHSA-2026:18048: Red Hat Enterprise Linux AppStream AUS (v.8.4), Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4)" }, { "lang": "en", "value": "RHSA-2026:18047: Red Hat Enterprise Linux AppStream AUS (v.8.6), Red Hat Enterprise Linux AppStream E4S (v.8.6), Red Hat Enterprise Linux AppStream TUS (v.8.6)" }, { "lang": "en", "value": "RHSA-2026:18046: Red Hat Enterprise Linux AppStream E4S (v.8.8), Red Hat Enterprise Linux AppStream TUS (v.8.8)" }, { "lang": "en", "value": "RHSA-2026:18045: Red Hat Enterprise Linux AppStream E4S (v.9.0)" }, { "lang": "en", "value": "RHSA-2026:18044: Red Hat Enterprise Linux AppStream E4S (v.9.2)" }, { "lang": "en", "value": "RHSA-2026:18040: Red Hat Enterprise Linux BaseOS EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)" }, { "lang": "en", "value": "RHSA-2026:16692: Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)" }, { "lang": "en", "value": "RHSA-2026:19151: Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)" }, { "lang": "en", "value": "RHSA-2026:18043: Red Hat CodeReady Linux Builder EUS (v.9.4), Red Hat Enterprise Linux BaseOS EUS (v.9.4)" }, { "lang": "en", "value": "RHSA-2026:18042: Red Hat CodeReady Linux Builder EUS (v.9.6), Red Hat Enterprise Linux BaseOS EUS (v.9.6)" }, { "lang": "en", "value": "RHSA-2026:16693: Red Hat Enterprise Linux BaseOS (v. 9), Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)" }, { "lang": "en", "value": "RHSA-2026:19365: Red Hat Enterprise Linux BaseOS (v. 9), Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)" }, { "lang": "en", "value": "RHSA-2026:25096: Red Hat AI Inference Server 3.2" }, { "lang": "en", "value": "RHSA-2026:30078: Red Hat AI Inference Server 3.3" }, { "lang": "en", "value": "RHSA-2026:30089: Red Hat AI Inference Server 3.3" }, { "lang": "en", "value": "RHSA-2026:30088: Red Hat AI Inference Server 3.3" }, { "lang": "en", "value": "RHSA-2026:30087: Red Hat AI Inference Server 3.3" }, { "lang": "en", "value": "RHSA-2026:8579: Red Hat Hardened Images" } ], "timeline": [ { "lang": "en", "time": "2026-04-13T23:01:01.219Z", "value": "Reported to Red Hat." }, { "lang": "en", "time": "2026-04-13T22:18:56.252Z", "value": "Made public." } ], "title": "jq: out-of-bounds read in jv_parse_sized() on error formatting for non-NUL-terminated buffers", "workarounds": [ { "lang": "en", "value": "To mitigate this issue, manually ensure that every buffer is NUL-terminated before passing it to the 'jv_parse_sized' function." } ], "x_adpType": "supplier", "x_generator": { "engine": "sadp-cli 1.0.0" }, "providerMetadata": { "orgId": "0b0ca135-0b70-47e7-9f44-1890c2a1c46c", "shortName": "redhat-SADP", "dateUpdated": "2026-07-10T12:05:54.906Z" } } ] } }