{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49839","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2026-06-01T18:50:36.056Z","datePublished":"2026-06-25T17:17:46.181Z","dateUpdated":"2026-06-25T17:55:27.488Z"},"containers":{"cna":{"title":"jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow","problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"}}],"references":[{"name":"https://github.com/jqlang/jq/security/advisories/GHSA-cfh2-vwfq-qfmm","tags":["x_refsource_CONFIRM"],"url":"https://github.com/jqlang/jq/security/advisories/GHSA-cfh2-vwfq-qfmm"}],"affected":[{"vendor":"jqlang","product":"jq","versions":[{"version":"< 1.8.2","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2026-06-25T17:17:46.181Z"},"descriptions":[{"lang":"en","value":"jq is a command-line JSON processor. Prior to 1.8.2,` jq --rawfile` can turn a handled oversized-string error into invalid-state reuse and a real heap out-of-bounds write in assertion-disabled builds. When jv_load_file(raw=1) reads an attacker-controlled file, it repeatedly appends file chunks to the same jv string accumulator. Once jv_string_append_buf() returns jv_invalid_with_msg(\"String too long\"), the raw-file loop does not stop. If the file contains at least one more byte, the next loop iteration appends a new chunk to an object that is already invalid. With assertions enabled this aborts in jvp_string_ptr(). With assertions disabled, the invalid object is interpreted as a string object and ASan reports heap-buffer-overflow. This vulnerability is fixed in 1.8.2."}],"source":{"advisory":"GHSA-cfh2-vwfq-qfmm","discovery":"UNKNOWN"}},"adp":[{"references":[{"url":"https://github.com/jqlang/jq/security/advisories/GHSA-cfh2-vwfq-qfmm","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-25T17:55:24.168681Z","id":"CVE-2026-49839","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-06-25T17:55:27.488Z"}}]}}