
Backporté le correctif en amont pour CVE-2025-48060 (dépassement de tampon du tas dans jv_string_empty) vers jq 1.6.
Backport du correctif amont pour CVE-2025-48060 (dépassement de tampon de tas dans jv_string_empty) vers jq 1.6.
Backport (CVE-2025-48060) – Backport du commit amont c6e0416 (« Correction du dépassement de tampon de tas lors du formatage d'une chaîne vide ») d'une version plus récente de jq vers jq-1.6, en adaptant la représentation interne des chaînes (jv_string_empty), en ajoutant un test de régression (0[implode]), en recompilant et en exécutant la suite de tests avec succès.
Vous pouvez appliquer ce backport sur la version officielle jq-1.6, soit à partir d'un tarball, soit à partir d'un checkout git.
curl -LO https://github.com/jqlang/jq/releases/download/jq-1.6/jq-1.6.tar.gz
tar xf jq-1.6.tar.gz
cd jq-1.6
patch -p1 < 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"
make check
Si vous souhaitez l'appliquer à partir d'un checkout git :
git clone https://github.com/jqlang/jq.git
cd jq
git checkout jq-1.6
git am 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"
make check