Home › News › Vulnerabilities
Ubuntu Issues Fix for yajl-ruby Flaws That Can Crash Processing Crafted JSON Input
Ubuntu Security Notice USN-9397-1 covers two vulnerabilities in the vendored YAJL library used by the yajl-ruby package, both of which can lead to denial of service. The notice advises updating affected systems to the fixed package versions it lists.
VulnerabilitiesKey points
- Ubuntu USN-9397-1 covers two vulnerabilities in yajl-ruby's bundled YAJL library.
- CVE-2017-16516 is a bounds-checking flaw triggered by strings with escape sequences.
- CVE-2022-24795 is a memory allocation flaw with large inputs that can corrupt heap memory.
- Both can cause denial of service if crafted input is processed; no active exploitation is indicated.
Ubuntu has published Security Notice USN-9397-1, covering two vulnerabilities in yajl-ruby, a Ruby binding for the Yajl streaming JSON parser. According to the notice, the package can be made to crash when it receives specially crafted input.
The first issue, CVE-2017-16516, is a bounds-checking flaw in the bundled YAJL library that appears when decoding strings containing escape sequences. The second, CVE-2022-24795, involves improper memory allocation when large inputs are processed, which can corrupt heap memory. Both can cause a denial of service if a user or automated system is tricked into processing crafted input.
The notice says a standard system update applies the necessary fixes and lists the fixed package versions. It also notes that no known active exploitation is indicated. The notice additionally promotes Ubuntu Pro, which provides extended security coverage for many packages and is free for up to five machines. The exact fixed versions are not reproduced in this summary, so consult the original notice for them.
For the full details, see the original Ubuntu Security Notice USN-9397-1.
What to do
- Apply the standard system update to install the fixes Ubuntu describes in USN-9397-1.
- Check the fixed yajl-ruby package versions listed in the original notice and confirm affected systems meet them.
Original report
“USN-9397-1: yajl-ruby 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…
Vulnerabilities mentioned
- CVE-2017-16516 High