Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
jqlang jq — jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow
AV AC PR UI S C I A CVSS EPSS %ile KEV
L L N R U N H H 7.1 .0015 4.6 —
AFFECTED
Product Versions Fixed
jq < 1.8.2 – —
TIMELINE
Jun 1 Reserved by GitHub_M
Jun 25 EXPLOIT PUBLISHED — CVE-2026-49839 (jqlang jq). Public exploit reference added.
Jun 25 Published (CNA: GitHub_M)
Description
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.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| June 1, 2026 | Reserved | Reserved by GitHub_M |
| June 25, 2026 | EXPLOIT PUBLISHED | EXPLOIT PUBLISHED — CVE-2026-49839 (jqlang jq). Public exploit reference added. |
| June 25, 2026 | Published | Published (CNA: GitHub_M) |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| jqlang | jq | — | < 1.8.2 | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-49839 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.