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, 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)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-yajlto a version that resolves this vulnerability.Fixed in 1.2.0-3ubuntu0.1~esm1
Event History
Frequently Asked Questions
Who is exposed to these issues?
Applications or automated systems that use yajl-ruby and process attacker-controlled input are exposed. The vulnerable YAJL library is vendored within yajl-ruby.
What must an attacker do to trigger the vulnerabilities?
An attacker must cause the application or automated system to process specially crafted input. For CVE-2017-16516, the input includes strings with escape sequences; for CVE-2022-24795, it is a specially crafted large input.
What is the expected impact of successful exploitation?
Both issues can cause denial of service. The escape-sequence bounds-checking issue can abort the application, while the large-input allocation issue can lead to heap memory corruption and denial of service.