# CVE-2026-41256: jq: Embedded NUL truncates top-level jq programs loaded with -f

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T17:18:30.975Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-158
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

jq is a command-line JSON processor. In 1.8.1 and earlier, Top-level jq programs loaded from a file with -f are truncated at the first embedded NUL byte on current upstream HEAD. A crafted filter file such as . followed by \x00 and arbitrary suffix compiles and executes as only the prefix before the NUL. This leaves jq with a post-CVE-2026-33948 prefix/full-buffer mismatch on the compilation path even though the JSON parser path has already been fixed.

(As written by CVE List.)

## Affected

- jqlang jq: <= 1.8.1; up to 1.8.1

## References

- <https://github.com/jqlang/jq/security/advisories/GHSA-vf2h-chrj-q3fg> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-41256](https://www.cve.org/CVERecord?id=CVE-2026-41256), CVE Terms of Use, modified 2026-06-23
- NVD: [CVE-2026-41256](https://nvd.nist.gov/vuln/detail/CVE-2026-41256), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41256 · Whole record: https://cve.day/CVE-2026-41256.json · Rebuilt by cve.day 2026-11-25T22:59:21.223Z
