CVEfocus › CVE database › CVE-2023-50268

CVE-2023-50268jq has stack-based buffer overflow in decNaNs

CVSS 6.2 MediumEPSS 0.4% (higher than 25% of CVEs)Published 2023-12-13Updated 2025-02-13Assigner: GitHub_M

jq is a command-line JSON processor. Version 1.7 is vulnerable to stack-based buffer overflow in builds using decNumber. Version 1.7.1 contains a patch for this issue.

CWE-120CWE-121

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
1Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04jqFixed1.7.1-2UBUNTU-CVE-2023-50268
Ubuntu 22.04jqNot affected
vulnerable_code_not_present
Ubuntu 16.04jqFix pending
Debian 14jqFixed1.7.1-1DEBIAN-CVE-2023-50268
Debian 13jqFixed1.7.1-1DEBIAN-CVE-2023-50268
Red Hat Enterprise Linux 9jqNot affected
Red Hat Enterprise Linux 9jq-develNot affected
Red Hat Enterprise Linux 8jqNot affected
Red Hat Enterprise Linux 8jq-develNot affected
Alpine Linux 3.24jqFixed1.7.1-r0ALPINE-CVE-2023-50268
Alpine Linux 3.23jqFixed1.7.1-r0ALPINE-CVE-2023-50268
Alpine Linux 3.22jqFixed1.7.1-r0ALPINE-CVE-2023-50268
Alpine Linux 3.21jqFixed1.7.1-r0ALPINE-CVE-2023-50268
Alpine Linux 3.19jqFixed1.7.1-r0ALPINE-CVE-2023-50268

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.