# CVE-2017-16516: libyajl2: In the yajl-ruby gem 1.3.0 for Ruby, when a crafted JSON file is supplied to Yajl::Parser.new.parse, the whole ruby p...

CVE-2017-16516 is fixed in 2 products on 1 platform, first by libyajl2 2.1.0-2ubuntu0.18.04.1~esm1, released June 6, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2017-16516
- Priority: Routine
- CVSS: n/a (Low)
- EPSS: 0.0377
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 3, 2017

## Description

In the yajl-ruby gem 1.3.0 for Ruby, when a crafted JSON file is supplied to Yajl::Parser.new.parse, the whole ruby process crashes with a SIGABRT in the yajl_string_decode function in yajl_encode.c. This results in the whole ruby process terminating and potentially a denial of service.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libyajl2 Ubuntu 18.04.6 LTS (bionic) | 2.1.0-2ubuntu0.18.04.1~esm1 | [libyajl2 2.1.0-2ubuntu0.18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libyajl2-2.1.0-2ubuntu0.18.04.1-esm1.md) | Jun 6, 2023 |
| Linux | libyajl2 Ubuntu 20.04 LTS (focal) | 2.1.0-3ubuntu0.20.04.1 | [libyajl2 2.1.0-3ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libyajl2-2.1.0-3ubuntu0.20.04.1.md) | Jun 6, 2023 |
| Linux | libyajl2 Ubuntu 22.04.1 LTS (jammy) | 2.1.0-3ubuntu0.22.04.1 | [libyajl2 2.1.0-3ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libyajl2-2.1.0-3ubuntu0.22.04.1.md) | Jun 6, 2023 |
| Linux | yajl-tools Ubuntu 18.04.6 LTS (bionic) | 2.1.0-2ubuntu0.18.04.1~esm1 | [yajl-tools 2.1.0-2ubuntu0.18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-yajl-tools-2.1.0-2ubuntu0.18.04.1-esm1.md) | Jun 6, 2023 |
| Linux | yajl-tools Ubuntu 20.04 LTS (focal) | 2.1.0-3ubuntu0.20.04.1 | [yajl-tools 2.1.0-3ubuntu0.20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-yajl-tools-2.1.0-3ubuntu0.20.04.1.md) | Jun 6, 2023 |
| Linux | yajl-tools Ubuntu 22.04.1 LTS (jammy) | 2.1.0-3ubuntu0.22.04.1 | [yajl-tools 2.1.0-3ubuntu0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-yajl-tools-2.1.0-3ubuntu0.22.04.1.md) | Jun 6, 2023 |

---

Data as of 2026-11-07T12:40:37Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
