Advisory

UBUNTU-CVE-2026-39979

Also known as: CVE-2026-39979

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 8.2, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Dates

Published
2026-04-13 23:16 UTC
Modified
2026-06-30 18:18 UTC

Affected packages and fixes

jq

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.6-2.1ubuntu3.2 (ecosystem)

Fixed versions

1.6-2.1ubuntu3.2

Fix

  • Fixed version 1.6-2.1ubuntu3.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jq

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 1.7.1-3ubuntu0.24.04.2 (ecosystem)

Fixed versions

1.7.1-3ubuntu0.24.04.2

Fix

  • Fixed version 1.7.1-3ubuntu0.24.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jq

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 1.8.1-3ubuntu1.1 (ecosystem)

Fixed versions

1.8.1-3ubuntu1.1

Fix

  • Fixed version 1.8.1-3ubuntu1.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jq

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 1.8.1-4ubuntu2 (ecosystem)

Fixed versions

1.8.1-4ubuntu2

Fix

  • Fixed version 1.8.1-4ubuntu2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences