Read the docs
TI-2022-08608 Aliases CVE-2022-24795GHSA-jj47-x69x-mxrm

Buffer Overflow and Integer Overflow in yajl-ruby

Priority HIGH 66CWE-122Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 6 fixed, 5 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-122 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.03444 89th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Partial yajl-ruby (RubyGems): 1.4.3Red Hat: 3 advisoriesRed Hat: 6 fixed, 5 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
brianmarioyajl-rubyup to 1.4.1—No fix listedCNA
—yajl-ruby (RubyGems)before 1.4.31.4.3Patch availableGHSA-jj47-x69x-mxrm
  • yajl-ruby Vendorbrianmario Affected up to 1.4.1 Fixed in — No fix listed CNA
  • yajl-ruby (RubyGems) Vendor— Affected before 1.4.3 Fixed in 1.4.3 Patch available GHSA-jj47-x69x-mxrm

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:yajl-ruby_project:yajl-ruby:*:*:*:*:*:ruby:*:*before 1.4.2VulnerableYajl-ruby Project
  • cpe:2.3:a:yajl-ruby_project:yajl-ruby:*:*:*:*:*:ruby:*:* Versions before 1.4.2 Vulnerable ·Yajl-ruby Project

Remediation

  • Fix · GHSA-jj47-x69x-mxrm yajl-ruby (RubyGems) Fixed in 1.4.3 Advisory →

Red Hat 3 advisories

  • RHSA-2024:2063 Released 2024-04-25 · Red Hat rating Moderate
    yajl security update
    • Red Hat CodeReady Linux Builder EUS (v.8.6) yajl-devel-2.1.0-13.el8_6
    • Red Hat Enterprise Linux AppStream EUS (v.8.6) yajl-2.1.0-13.el8_6
  • RHSA-2022:8252 Released 2022-11-15 · Red Hat rating Moderate
    yajl security update
    • Red Hat CodeReady Linux Builder (v. 9) yajl-devel-2.1.0-21.el9
    • Red Hat Enterprise Linux AppStream (v. 9) yajl-2.1.0-21.el9
  • RHSA-2022:7524 Released 2022-11-08 · Red Hat rating Moderate
    yajl security update
    • Red Hat CodeReady Linux Builder (v. 8) yajl-devel-2.1.0-11.el8
    • Red Hat Enterprise Linux AppStream (v. 8) yajl-2.1.0-11.el8

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 8AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 9AffectedNo fix yet
Red Hat OpenShift Container Platform 3.11AffectedNo fix planned: Out of support scope
Red Hat CodeReady Linux Builder (v. 8)Fixed RHSA-2022:7524
Red Hat CodeReady Linux Builder (v. 9)Fixed RHSA-2022:8252
Red Hat CodeReady Linux Builder EUS (v.8.6)Fixed RHSA-2024:2063
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2022:7524
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2022:8252
Red Hat Enterprise Linux AppStream EUS (v.8.6)Fixed RHSA-2024:2063

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-24795
  2. 2026-10-03 Alias added: GHSA-jj47-x69x-mxrm

References

  • TI-2017-12131 In the yajl-ruby gem 1.3.0 for Ruby, when a crafted JSON file is supplied to… CVSS 3.1HIGH 7.5

Sources