PT-2022-7111
CVE-2022-24795
·
Published
2022-04-05
·
Updated
2026-10-09
Description by
CVSS 2.0
7.8
HighMetricsAV:N/AC:L/Au:N/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions
yajl-ruby versions 1.x through 2.x
Description
The issue is related to an integer overflow in the yajl-ruby library, which leads to heap memory corruption when dealing with large inputs (~2GB). The reallocation logic at
yajl buf.c#L64 may result in the need 32bit integer wrapping to 0, causing a reallocation of buf->alloc into a small heap chunk. This vulnerability mostly impacts process availability, and maintainers believe exploitation for arbitrary code execution is unlikely.Recommendations
For yajl-ruby versions 1.x through 2.x, update to version 1.4.3 to resolve the issue.
As a temporary workaround, avoid passing large inputs to YAJL.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾