CVE-2023-50246 jq has heap-buffer-overflow vulnerability in the function decToString in decNumber.c

Medium 6.2 Published Updated

A heap-based buffer overflow in jq allows attackers to execute arbitrary code or cause denial of service via crafted JSON input.

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-50246?

CVE-2023-50246 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 heap-based buffer overflow. Version 1.7.1 contains a patch for this issue.

Weakness: CWE-787, CWE-122, CWE-120

Which versions are affected by CVE-2023-50246?

It affects 1 product.

Products include Jqlang Jq.

How do I fix CVE-2023-50246?

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-50246 being exploited?

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

Sources

Also known as ALPINE-CVE-2023-50246, BELL-CVE-2023-50246, DEBIAN-CVE-2023-50246, GHSA-686w-5m7m-54vc.

Is CVE-2023-50246 in your software?

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

Check your SBOMs for free