CVE-2015-8863

Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (crash) via a long JSON-encoded number…

published May 6, 2016

CVSS
—
EPSS
7%
Percentile
94.3
In the wild
Unconfirmed
What it is

⚠️ An off-by-one error could lead to a denial of service! A crafty attacker can send a long JSON-encoded number to crash your jq parser, causing chaos. 🔥 Think of it like trying to fit a jumbo-sized inflatable into a small car. One extra inch and it just doesn't fit, causing the whole vehicle to break down instead! This vulnerability could trigger a heap-based buffer overflow, leading to a denial of service. If exploited, it would cause the jq parser to crash, potentially impacting applications that rely on JSON parsing, leaving users unable to process critical data.

Put simply

Think of it like trying to fit a jumbo-sized inflatable into a small car. One extra inch and it just doesn't fit, causing the whole vehicle to break down instead! In this case, the off-by-one error in the tokenadd function of jv_parse.c allows attackers to disrupt the normal operation of jq by sending overly long JSON-encoded numbers, resulting in memory corruption and crashes.

What to do

This vulnerability could trigger a heap-based buffer overflow, leading to a denial of service. If exploited, it would cause the jq parser to crash, potentially impacting applications that rely on JSON parsing, leaving users unable to process critical data. To protect yourself, review your usage of jq and consider patching to a version that addresses this vulnerability. Implement input validation to filter out excessively long JSON numbers and monitor your application logs for unusual activity. 🛡️ You've got this! By taking these steps, you'll ensure your jq parser remains resilient and secure! 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.07268 · 94.3th percentile
Published
2016-05-06T17:00Z
EPSS history
Timeline
  • 06 MAY 17:00Z
    Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (crash) via a long JSON-encoded number…
    cvelistv5