Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/leorivass/jq-els-backport-cve-2025-48060
General Purpose UtilitiesVulnerability AnalysisExploitationBinary Analysis
GitHubleorivass/jq-els-backport-cve-2025-48060

jq-els-backport-cve-2025-48060

Backported the upstream fix for CVE-2025-48060 (heap buffer overflow in jv_string_empty) to jq 1.6.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
19 months agoNot yet reviewed

jq-els-backport-cve-2025-48060

Backported the upstream fix for CVE-2025-48060 (heap buffer overflow in jv_string_empty) to jq 1.6.

Backport (CVE-2025-48060) – Backported upstream commit c6e0416 (“Fix heap buffer overflow when formatting an empty string”) from a newer jq version to jq-1.6, adapting internal string representation (jv_string_empty), adding a regression test (0[implode]), rebuilding and running the test suite successfully.

How to apply this patch

You can apply this backport on top of the official jq-1.6 release either from a tarball or from a git checkout.

1) Download and unpack jq-1.6

root@kitploit:~
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

2) Copy the patch from this repo into the jq source directory

3) Apply the backport patch

root@kitploit:~
patch -p1 < 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch

4) Regenerate build system and build jq

root@kitploit:~
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"

5) Run the test suite

root@kitploit:~
make check

In case you want to apply it from a git checkout:

1) Clone the jq repository

root@kitploit:~
git clone https://github.com/jqlang/jq.git
cd jq

2) Switch to jq 1.6 tag

root@kitploit:~
git checkout jq-1.6

3) Copy the patch from this repo into the jq source directory

4) Apply the patch with git am

root@kitploit:~
git am 0001-Fix-heap-buffer-overflow-when-formatting-an-empty-st.patch

5) Compile and run the tests

root@kitploit:~
git submodule update --init
autoreconf -i
./configure --with-oniguruma=builtin
make -j"$(nproc)"
make check
Download Tool