PT-2022-7111 · Yajl-Ruby+10 · Yajl-Ruby+10
Jhawthorn
·
Published
2022-04-05
·
Updated
2024-12-06
·
CVE-2022-24795
CVSS v2.0
7.8
High
| Vector | AV: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.
Exploit
Fix
Integer Overflow
Heap Based Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Debian
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Yajl-Ruby