{
  "threat_severity" : "Important",
  "public_date" : "2026-04-13T22:18:56Z",
  "bugzilla" : {
    "description" : "jq: out-of-bounds read in jv_parse_sized() on error formatting for non-NUL-terminated buffers",
    "id" : "2458077",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2458077"
  },
  "cvss3" : {
    "cvss3_base_score" : "8.2",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-125",
  "details" : [ "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.", "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." ],
  "statement" : "To exploit this flaw, an attacker needs to supply malformed JSON from a non-NUL-terminated buffer to an application using the `jv_parse_sized` function. This allows the attacker to trigger the out-of-bounds read, causing an application crash and potentially disclosing memory with no other security impact. As this issue affects the libjq library, it is more likely to be exposed to untrusted input. Due to these reasons, this vulnerability has been rated with an important severity.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-05-13T00:00:00Z",
    "advisory" : "RHSA-2026:16692",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.1",
    "package" : "jq-0:1.7.1-11.el10_1.0.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-05-19T00:00:00Z",
    "advisory" : "RHSA-2026:19151",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.2",
    "package" : "jq-0:1.7.1-11.el10_2.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 10.0 Extended Update Support",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18040",
    "cpe" : "cpe:/o:redhat:enterprise_linux_eus:10.0",
    "package" : "jq-0:1.7.1-8.el10_0.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2026-05-12T00:00:00Z",
    "advisory" : "RHSA-2026:16252",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "jq-0:1.6-12.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18048",
    "cpe" : "cpe:/a:redhat:rhel_aus:8.4",
    "package" : "jq-0:1.5-12.el8_4.5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18048",
    "cpe" : "cpe:/a:redhat:rhel_eus_long_life:8.4",
    "package" : "jq-0:1.5-12.el8_4.5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18047",
    "cpe" : "cpe:/a:redhat:rhel_aus:8.6",
    "package" : "jq-0:1.6-3.el8_6.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Telecommunications Update Service",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18047",
    "cpe" : "cpe:/a:redhat:rhel_tus:8.6",
    "package" : "jq-0:1.6-3.el8_6.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18047",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.6",
    "package" : "jq-0:1.6-3.el8_6.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.8 Telecommunications Update Service",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18046",
    "cpe" : "cpe:/a:redhat:rhel_tus:8.8",
    "package" : "jq-0:1.6-6.el8_8.4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18046",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.8",
    "package" : "jq-0:1.6-6.el8_8.4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-05-13T00:00:00Z",
    "advisory" : "RHSA-2026:16693",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "jq-0:1.6-19.el9_7.0.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-05-19T00:00:00Z",
    "advisory" : "RHSA-2026:19365",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "jq-0:1.6-19.el9_8.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18045",
    "cpe" : "cpe:/a:redhat:rhel_e4s:9.0",
    "package" : "jq-0:1.6-12.el9_0.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18044",
    "cpe" : "cpe:/a:redhat:rhel_e4s:9.2",
    "package" : "jq-0:1.6-15.el9_2.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.4 Extended Update Support",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18043",
    "cpe" : "cpe:/o:redhat:rhel_eus:9.4",
    "package" : "jq-0:1.6-16.el9_4.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.6 Extended Update Support",
    "release_date" : "2026-05-18T00:00:00Z",
    "advisory" : "RHSA-2026:18042",
    "cpe" : "cpe:/o:redhat:rhel_eus:9.6",
    "package" : "jq-0:1.6-17.el9_6.4"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.15",
    "release_date" : "2026-06-11T00:00:00Z",
    "advisory" : "RHSA-2026:23233",
    "cpe" : "cpe:/a:redhat:openshift:4.15::el9",
    "package" : "rhcos-415.92.202606030318-0"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.16",
    "release_date" : "2026-06-18T00:00:00Z",
    "advisory" : "RHSA-2026:25044",
    "cpe" : "cpe:/a:redhat:openshift:4.16::el9",
    "package" : "rhcos-416.94.202606051757-0"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.18",
    "release_date" : "2026-06-17T00:00:00Z",
    "advisory" : "RHSA-2026:25181",
    "cpe" : "cpe:/a:redhat:openshift:4.18::el9",
    "package" : "rhcos-418.94.202606051320-0"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4.19",
    "release_date" : "2026-06-10T00:00:00Z",
    "advisory" : "RHSA-2026:23245",
    "cpe" : "cpe:/a:redhat:openshift:4.19::el9",
    "package" : "rhcos-4.19.9.6.202606031700-0"
  }, {
    "product_name" : "Red Hat AI Inference Server 3.2",
    "release_date" : "2026-06-10T00:00:00Z",
    "advisory" : "RHSA-2026:25096",
    "cpe" : "cpe:/a:redhat:ai_inference_server:3.2::el9",
    "package" : "rhaiis/model-opt-cuda-rhel9:1780681984"
  }, {
    "product_name" : "Red Hat Hardened Images",
    "release_date" : "2026-04-16T00:00:00Z",
    "advisory" : "RHSA-2026:8579",
    "cpe" : "cpe:/a:redhat:hummingbird:1",
    "package" : "jq-main-1.8.1-3.hum1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Ansible Automation Platform 2",
    "fix_state" : "Affected",
    "package_name" : "ansible-automation-platform-26/controller-rhel9",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2",
    "fix_state" : "Not affected",
    "package_name" : "ansible-automation-platform-26/hub-rhel9",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2"
  }, {
    "product_name" : "Red Hat Ansible Automation Platform 2",
    "fix_state" : "Not affected",
    "package_name" : "automation-controller",
    "cpe" : "cpe:/a:redhat:ansible_automation_platform:2"
  }, {
    "product_name" : "Red Hat Ceph Storage 4",
    "fix_state" : "Fix deferred",
    "package_name" : "jq",
    "cpe" : "cpe:/a:redhat:ceph_storage:4"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2026-39979\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-39979\nhttps://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f\nhttps://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p" ],
  "name" : "CVE-2026-39979",
  "mitigation" : {
    "value" : "To mitigate this issue, manually ensure that every buffer is NUL-terminated before passing it to the 'jv_parse_sized' function.",
    "lang" : "en:us"
  },
  "csaw" : false
}