Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.

ruby-yajl can crash from crafted JSON input

published 4 days ago
Summary

The ruby-yajl library, used to read JSON data, does not correctly check the size of data it processes. This can cause the program to stop working if it receives specially crafted or very large input. Update to the latest version of ruby-yajl or replace it with a safer JSON parser to avoid the crash.

What to do
  • Update canonical ruby-yajl to version 1.2.0-3ubuntu0.1~esm1.
Affected software
Ecosystem VendorProductAffected versions
Ubuntu:Pro:16.04:LTS canonical ruby-yajl < 1.2.0-3ubuntu0.1~esm1
Fix: upgrade to 1.2.0-3ubuntu0.1~esm1
Original advisory text
ruby-yajl vulnerabilities
It was discovered that YAJL, vendored in yajl-ruby, was not properly
performing bounds checks when decoding a string with escape sequences. If a
user or automated system using yajl-ruby were tricked into processing
specially crafted input, an attacker could possibly use this issue to cause
a denial of service (application abort). (CVE-2017-16516)

It was discovered that YAJL, vendored in yajl-ruby, was not properly
handling memory allocation when dealing with large inputs, which could lead
to heap memory corruption. If a user or automated system using yajl-ruby
were tricked into running a specially crafted large input, an attacker
could possibly use this issue to cause a denial of service.
(CVE-2022-24795)
Timeline
Published2 Dec 2026
Updated3 Dec 2026
First seen3 Dec 2026
Sources
USN-9397-1 · OSV
Track software like this
Free during beta