CVEfocus › CVE database › CVE-2020-10663

CVE-2020-10663

EPSS 6.8% (higher than 95% of CVEs)Published 2020-04-28Updated 2024-08-04Assigner: mitre

The JSON gem through 2.2.0 for Ruby, as used in Ruby 2.4 through 2.4.9, 2.5 through 2.5.7, and 2.6 through 2.6.5, has an Unsafe Object Creation Vulnerability. This is quite similar to CVE-2013-0269, but does not rely on poor garbage-collection behavior within Ruby. Specifically, use of JSON parsing methods can lead to creation of a malicious object within the interpreter, with adverse effects that are application-dependent.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, RubyGems, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

74Fixed
3Fix pending
15Will not fix
18Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ruby-jsonNot affected
vulnerable_code_not_present
Ubuntu 25.10ruby-jsonNot affected
vulnerable_code_not_present
Ubuntu 24.04ruby-jsonNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-jsonNot affected
vulnerable_code_not_present
Ubuntu 20.04ruby-jsonNot affected
vulnerable_code_not_present
Ubuntu 18.04ruby-jsonFix pendingUBUNTU-CVE-2020-10663
Ubuntu 18.04ruby2.5Fixed2.5.1-1ubuntu1.8UBUNTU-CVE-2020-10663
Ubuntu 16.04ruby-jsonFix pendingUBUNTU-CVE-2020-10663
Ubuntu 16.04ruby2.3Fixed2.3.1-2~ubuntu16.04.15UBUNTU-CVE-2020-10663
Ubuntu 14.04ruby-jsonFix pendingUBUNTU-CVE-2020-10663
Debian 14ruby-jsonFixed2.3.0+dfsg-1DEBIAN-CVE-2020-10663
Debian 13ruby-jsonFixed2.3.0+dfsg-1DEBIAN-CVE-2020-10663
Debian 12ruby-jsonFixed2.3.0+dfsg-1DEBIAN-CVE-2020-10663
Red Hat Enterprise Linux 8pcsFixed0:0.10.4-6.el8_2.1RHSA-2020:2462
Red Hat Enterprise Linux 8pcs-snmpFixed0:0.10.4-6.el8_2.1RHSA-2020:2462
Red Hat Enterprise Linux 8rubyFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8ruby-develFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8ruby-docFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8ruby-irbFixed0:2.5.9-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hat Enterprise Linux 8ruby-libsFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-abrtFixed0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-abrt-docFixed0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bigdecimalFixed0:1.3.4-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bsonFixed0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-bson-docFixed0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-bundlerFixed0:1.17.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-bundler-docFixed0:1.16.1-3.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-did_you_meanFixed0:1.2.0-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-io-consoleFixed0:0.4.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-irbFixed0:1.0.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-jsonFixed0:2.1.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-minitestFixed0:5.10.3-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mongoFixed0:2.8.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-mongo-docFixed0:2.8.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-mysql2Fixed0:0.4.10-4.module+el8.1.0+3656+f80bfa1dRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mysql2-docFixed0:0.5.2-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-net-telnetFixed0:0.1.1-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-opensslFixed0:2.1.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-pgFixed0:1.1.4-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-pg-docFixed0:1.0.0-2.module+el8.1.0+3656+f80bfa1dRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-power_assertFixed0:1.1.3-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-psychFixed0:3.0.2-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-rakeFixed0:12.3.3-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-rdocFixed0:6.0.1.1-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-test-unitFixed0:3.2.9-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygem-xmlrpcFixed0:0.3.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2587
Red Hat Enterprise Linux 8rubygemsFixed0:2.7.6.3-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 8rubygems-develFixed0:2.7.6.3-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2588
Red Hat Enterprise Linux 7pcsNot affected
Red Hat Enterprise Linux 7pcs-snmpNot affected
Red Hat Enterprise Linux 7python-clufterNot affected
Red Hat Enterprise Linux 7rubyWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-develWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-docWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-irbWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7ruby-tcltkWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-bigdecimalWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-io-consoleWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-minitestWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-psychWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-rakeWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygem-rdocWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygemsWill not fix
Will not fix
Red Hat Enterprise Linux 7rubygems-develWill not fix
Will not fix
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 6ruby-develNot affected
Red Hat Enterprise Linux 6ruby-docsNot affected
Red Hat Enterprise Linux 6ruby-irbNot affected
Red Hat Enterprise Linux 6ruby-libsNot affected
Red Hat Enterprise Linux 6ruby-rdocNot affected
Red Hat Enterprise Linux 6ruby-riNot affected
Red Hat Enterprise Linux 6ruby-staticNot affected
Red Hat Enterprise Linux 6ruby-tcltkNot affected
Red Hat Enterprise Linux 5rubyNot affected
AlmaLinux 8rubygem-abrtFixed0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2021:2587
AlmaLinux 8rubygem-abrt-docFixed0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux 8rubygem-bsonFixed4.5.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2587
AlmaLinux 8rubygem-bson-docFixed4.5.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2587
AlmaLinux 8rubygem-mongoFixed2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2021:2588
AlmaLinux 8rubygem-mongo-docFixed2.8.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux 8rubygem-mysql2Fixed0.4.10-4.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux 8rubygem-mysql2-docFixed0.5.2-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux 8rubygem-pgFixed1.1.4-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2587
AlmaLinux 8rubygem-pg-docFixed1.0.0-2.module_el8.5.0+2625+ec418553ALSA-2021:2588
Rocky Linux 8rubyFixed0:2.5.9-107.module+el8.4.0+592+03ff458aRLSA-2021:2588
Rocky Linux 8rubygem-abrtFixed0:0.3.0-4.module+el8.3.0+167+5c390590RLSA-2021:2587
Rocky Linux 8rubygem-bsonFixed0:4.3.0-2.module+el8.4.0+592+03ff458aRLSA-2021:2588
Rocky Linux 8rubygem-bundlerFixed0:1.16.1-3.module+el8.3.0+167+5c390590RLSA-2021:2587
Rocky Linux 8rubygem-mongoFixed0:2.5.1-2.module+el8.4.0+592+03ff458aRLSA-2021:2588
Rocky Linux 8rubygem-mysql2Fixed0:0.4.10-4.module+el8.5.0+739+43897a5eRLSA-2021:2587
Rocky Linux 8rubygem-pgFixed0:1.1.4-1.module+el8.5.0+738+032c9c02RLSA-2021:2588
Alpine Linux 3.24rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.23rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.22rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.21rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.20rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.19rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.18rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.17rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.16rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.15rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.14rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.13rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.12rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.11rubyFixed2.6.6-r0ALPINE-CVE-2020-10663
Alpine Linux 3.10rubyFixed2.5.8-r0ALPINE-CVE-2020-10663
Alpine Linux 3.7rubyFixed2.4.10-r0ALPINE-CVE-2020-10663
RubyGems libraryjsonFixed2.3.0GHSA-jphg-qwrw-7w9g

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.