CVE-2022-24795 Vulnerability Analysis & Exploit Details

CVE-2022-24795
Vulnerability Scoring

5.9
/10
Significant Risk

Security assessments indicate that CVE-2022-24795 presents a notable risk, potentially requiring prompt mitigation.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2022-24795 Details

Status: Modified

Last updated: 🕡 21 Nov 2024, 06:51 UTC
Originally published on: 🕓 05 Apr 2022, 16:15 UTC

Time between publication and last update: 960 days

CVSS Release: version 3

CVSS3 Source

security-advisories@github.com

CVSS3 Type

Secondary

CVSS3 Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE-2022-24795 Vulnerability Summary

CVE-2022-24795: 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 and anticipated to be part of yajl-ruby version 1.4.2. As a workaround, avoid passing large inputs to YAJL.

Assessing the Risk of CVE-2022-24795

Access Complexity Graph

The exploitability of CVE-2022-24795 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2022-24795

CVE-2022-24795 presents a challenge to exploit due to its high attack complexity, but the absence of privilege requirements still makes it a viable target for skilled attackers. A thorough security review is advised.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2022-24795, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2022-24795, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2022-24795 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2022-24795 poses no threat to data integrity.
  • Availability: High
    CVE-2022-24795 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 2.179% (probability of exploit)

EPSS Percentile: 89.33% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 10.670000000000002% of others.

CVE-2022-24795 References

External References

CWE Common Weakness Enumeration

CWE-190

CAPEC Common Attack Pattern Enumeration and Classification

  • Forced Integer Overflow CAPEC-92 This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.

Vulnerable Configurations

  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.1.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.1.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.2.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.2.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.2.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.2.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.4:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.3.4:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.4:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.4:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.5:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.5:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.6:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.6:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.7:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.7:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.8:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.8:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.9:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.4.9:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.4:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.4:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.5:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.5:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.6:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.6:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.7:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.7:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.8:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.8:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.9:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.9:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.10:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.10:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.11:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.11:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.12:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.5.12:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.4:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.4:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.5:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.5:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.6:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.6:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.7:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.7:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.8:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.8:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.9:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.6.9:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.4:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.4:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.5:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.5:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.6:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.6:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.7:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.7:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.8:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.8:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.9:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.7.9:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:0.8.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.0.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.0.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.1.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.1.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.2:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.2:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.3:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.2.3:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.3.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.3.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.3.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.3.1:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.4.0:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.4.0:*:*:*:*:ruby:*:*
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.4.1:*:*:*:*:ruby:*:*
    cpe:2.3:a:yajl-ruby_project:yajl-ruby:1.4.1:*:*:*:*:ruby:*:*

Protect Your Infrastructure against CVE-2022-24795: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-46328 – snowflake-connector-nodejs is a NodeJS driver for Snowflake. Versions starting from 1.10.0 to before 2.0.4, are vulnerable to a Time-of-Check to Ti...
  • CVE-2025-46327 – gosnowflake is the Snowflake Golang driver. Versions starting from 1.7.0 to before 1.13.3, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU...
  • CVE-2025-46326 – snowflake-connector-net is the Snowflake Connector for .NET. Versions starting from 2.1.2 to before 4.4.1, are vulnerable to a Time-of-Check to Tim...
  • CVE-2025-4039 – A vulnerability was found in PHPGurukul Rail Pass Management System 1.0. It has been rated as critical. Affected by this issue is some unknown func...
  • CVE-2025-4038 – A vulnerability was found in code-projects Train Ticket Reservation System 1.0. It has been declared as critical. Affected by this vulnerability is...