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

Medium 6.2 Published Updated

A stack-based buffer overflow in jq's decNumber implementation allows attackers to execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-50268?

CVE-2023-50268 is a medium-severity memory corruption vulnerability in jqlang jq, published on 13 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-787, CWE-121, CWE-120

Which versions are affected by CVE-2023-50268?

It affects 1 product.

Products include Jqlang Jq.

How do I fix CVE-2023-50268?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-50268 being exploited?

There is no known exploitation of CVE-2023-50268 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2023-50268, BELL-CVE-2023-50268, DEBIAN-CVE-2023-50268, GHSA-7hmr-442f-qc8j, UBUNTU-CVE-2023-50268.

Is CVE-2023-50268 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free