Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-24795

5.9 · MEDIUM
Published Apr 5, 2022 yajl-ruby_project CWE-122 EPSS 3.47% (88th pctl)

Overview

CVE-2022-24795 is a medium-severity vulnerability affecting yajl-ruby_project yajl-ruby. It was published on April 5, 2022 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

yajl-ruby is a C binding to the YAJL JSON parsing and generation library. The 1.x branch and the 2.x branch of `yajl` contain an integer overflow which leads to subsequent heap memory corruption when dealing with large (~2GB) inputs. The reallocation logic at `yajl_buf.c#L64` may result in the `need` 32bit integer wrapping to 0 when `need` approaches a value of 0x80000000 (i.e. ~2GB of data), which results in a reallocation of buf->alloc into a small heap chunk. These integers are declared as `size_t` in the 2.x branch of `yajl`, which practically prevents the issue from triggering on 64bit platforms, however this does not preclude this issue triggering on 32bit builds on which `size_t` is a 32bit integer. Subsequent population of this under-allocated heap chunk is based on the original buffer size, leading to heap memory corruption. This vulnerability mostly impacts process availability. Maintainers believe exploitation for arbitrary code execution is unlikely. A patch is available an

Remediation

Check the references section for vendor advisories and patches from yajl-ruby_project. Update yajl-ruby to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
yajl-ruby_project yajl-ruby >= 0, < 1.4.2 Affected

Frequently Asked Questions

What is CVE-2022-24795?

CVE-2022-24795 is a medium-severity vulnerability affecting yajl-ruby_project yajl-ruby. It was published on April 5, 2022 and has a CVSS 3.1 base score of 5.9 (MEDIUM).

How severe is CVE-2022-24795?

This vulnerability has a CVSS 3.1 base score of 5.9, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-24795?

Check the references section for vendor advisories and patches from yajl-ruby_project. Update yajl-ruby to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-24795?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-24795 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.