PT-2020-2440 · Ruby+8 · Json Gem+9

Jeremy Evans

·

Published

2020-03-19

·

Updated

2026-03-13

·

CVE-2020-10663

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions JSON gem versions 2.2.0 and earlier Ruby versions 2.4 through 2.4.9 Ruby versions 2.5 through 2.5.7 Ruby versions 2.6 through 2.6.5
Description The JSON gem for Ruby has an Unsafe Object Creation issue due to insufficient input validation. This can lead to the creation of a malicious object within the interpreter when using JSON parsing methods, resulting in application-dependent adverse effects. The issue is similar to a previously known vulnerability but does not rely on poor garbage collection behavior within Ruby.
Recommendations For JSON gem version 2.2.0 and earlier, update to a version with improved checks. For Ruby versions 2.4 through 2.4.9, consider updating to a version with the improved JSON gem. For Ruby versions 2.5 through 2.5.7, consider updating to a version with the improved JSON gem. For Ruby versions 2.6 through 2.6.5, consider updating to a version with the improved JSON gem.

Exploit

Fix

RCE

Weakness Enumeration

Related Identifiers

ALSA-2021:2587
ALSA-2021:2588
ALSA-2025_16880
BDU:2020-02449
CESA-2020_2462
CESA-2021_2587
CESA-2021_2588
CVE-2020-10663
DLA-2190-1
DLA-2192-1
DSA-4721-1
GHSA-JPHG-QWRW-7W9G
MGASA-2020-0186
OPENSUSE-SU-2020:0586-1
OPENSUSE-SU-2020_0586-1
OPENSUSE-SU-2024:11310-1
OPENSUSE-SU-2024:11311-1
OPENSUSE-SU-2024:11335-1
OPENSUSE-SU-2024:11786-1
OPENSUSE-SU-2024:11829-1
OPENSUSE-SU-2024:12712-1
OPENSUSE-SU-2024:13160-1
OPENSUSE-SU-2024:13623-1
OPENSUSE-SU-2024:13719-1
OPENSUSE-SU-2025:14621-1
OPENSUSE-SU-2025:15118-1
OPENSUSE-SU-2025:15819-1
OPENSUSE-SU-2026:10351-1
RHSA-2020:2462
RHSA-2020:2473
RHSA-2020:2670
RHSA-2020_2462
RHSA-2021:2104
RHSA-2021:2230
RHSA-2021:2587
RHSA-2021:2588
RHSA-2021_2587
RHSA-2021_2588
RHSA-2022:0581
RHSA-2022:0582
RLSA-2021:2587
RLSA-2021:2588
SUSE-RU-2020:2072-1
SUSE-SU-2020:0995-1
SUSE-SU-2020:1570-1
SUSE-SU-2020:1901-1
SUSE-SU-2020_1570-1
USN-4882-1

Affected Products

Almalinux
Centos
Json Gem
Linuxmint
Apple Macos
Red Hat
Rocky Linux
Ruby
Suse
Ubuntu