cve.bz

CVE-2020-10663 Improper Input Validation

7.5 highEPSS 6.8%Fix available

High (7.5). EPSS 6.8% estimated probability of exploitation activity in the next 30 days. Fixed in json 2.3.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
6.8% (unchanged from 6.8% a week ago; 6.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-10663 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-10663?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-10663?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-10663 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
json_project:jsonthrough 2.2.0
fedoraproject:fedora30
fedoraproject:fedora31
opensuse:leap15.1
debian:debian_linux8.0
debian:debian_linux10.0
apple:macos11.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jphg-qwrw-7w9gRubyGemsjson<2.3.02.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8ruby-json1.8.1-1+deb8u1DLA-2190-1
Debian8ruby2.12.1.5-2+deb8u10DLA-2192-1
Debian10ruby2.52.5.5-3+deb10u2DSA-4721-1
Debian12, 13, 14ruby-json2.3.0+dfsg-1DEBIAN-CVE-2020-10663
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTSruby-jsonno fix listedUBUNTU-CVE-2020-10663
Ubuntu16.04:LTSruby2.32.3.1-2~ubuntu16.04.15UBUNTU-CVE-2020-10663 USN-4882-1
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.8UBUNTU-CVE-2020-10663 USN-4882-1
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.3USN-4882-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 4 more0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.4.1-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.3.0-2.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:1.17.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hatenterprise_linux:8::appstreamrubygem-bundler, rubygem-bundler-doc0:1.16.1-3.module+el8.1.0+3656+f80bfa1dRHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-did_you_mean0:1.2.0-107.module+el8.4.0+10822+fe4fffb1RHSA-2021:2587
Red Hatenterprise_linux:8::appstreamrubygem-did_you_mean0:1.3.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
110 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreruby2.12.1.9-19.3.2SUSE-SU-2020:1570-1
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20200527-1.26.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8openstack-dashboard-theme-HPE8+git.1523473653.6599ec8-3.3.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev3-14.30.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ansible11.9.6-7.3.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1589740980.6c3bcdc-3.73.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cluster8.0+git.1585685203.3e71e49-3.36.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-freezer8.0+git.1586539529.b7d295f-3.21.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-input-model8.0+git.1589740934.0e0ad61-3.39.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-logging8.0+git.1591194866.b7375d0-3.24.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1589715269.62ad6df-3.22.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-neutron8.0+git.1590756744.ba84abc-3.42.1SUSE-SU-2020:1901-1
89 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1ruby2.52.5.8-lp151.4.9.1openSUSE-SU-2020:0586-1
openSUSETumbleweedruby2.72.7.3-3.2openSUSE-SU-2024:11310-1
openSUSETumbleweedruby3.03.0.1-3.2openSUSE-SU-2024:11311-1
openSUSETumbleweedruby3.13.1.0-1.1openSUSE-SU-2024:11786-1
openSUSETumbleweedruby3.23.2.1-1.1openSUSE-SU-2024:12712-1
openSUSETumbleweedruby3.2-rubygem-json_pure2.6.3-1.3openSUSE-SU-2024:13160-1
openSUSETumbleweedruby3.33.3.0-1.2openSUSE-SU-2024:13623-1
openSUSETumbleweedruby3.43.4.1-1.1openSUSE-SU-2025:14621-1
openSUSETumbleweedruby4.04.0.0~preview2-1.1openSUSE-SU-2025:15819-1
openSUSETumbleweedrubygem-json_pure2.6.1-1.1openSUSE-SU-2024:11829-1
openSUSETumbleweedrubygem-json_pure2.7.1-1.1openSUSE-SU-2024:13719-1
openSUSETumbleweedrubygem-json_pure2.7.6-1.3openSUSE-SU-2025:15118-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917ALSA-2021:2587 ALSA-2021:2588
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2021:2587 ALSA-2021:2588
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+259+8cec6917ALSA-2021:2587
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux8rubygem-bson, rubygem-bson-doc4.5.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux8rubygem-bson, rubygem-bson-doc4.5.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.5.1-2.module_el8.5.0+259+8cec6917ALSA-2021:2587
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2021:2587
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.8.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux8rubygem-mongo, rubygem-mongo-doc2.8.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.4.10-4.module_el8.5.0+259+8cec6917ALSA-2021:2587
7 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:2.5.9-107.module+el8.4.0+592+03ff458aRLSA-2021:2587
Rocky Linux8ruby0:2.6.7-107.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.3.0+167+5c390590RLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.4.0+592+03ff458aRLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2021:2587 RLSA-2021:2588
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.3.0+167+5c390590RLSA-2021:2587
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.4.0+592+03ff458aRLSA-2021:2587
Rocky Linux8rubygem-bson0:4.5.0-1.module+el8.4.0+446+80b53620RLSA-2021:2588
Rocky Linux8rubygem-bson0:4.5.0-1.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux8rubygem-bundler0:1.16.1-3.module+el8.3.0+167+5c390590RLSA-2021:2587
Rocky Linux8rubygem-bundler0:1.16.1-3.module+el8.4.0+592+03ff458aRLSA-2021:2587
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.4.0+349+3470f258RLSA-2021:2587
14 more for Rocky Linux in the JSON.
Alpinev3.7ruby2.4.10-r0ALPINE-CVE-2020-10663
Alpinev3.10ruby2.5.8-r0ALPINE-CVE-2020-10663
Alpinev3.11, v3.12, v3.13 and 11 moreruby2.6.6-r0ALPINE-CVE-2020-10663

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CloudForms 5 uses vulnerable rubygem-json, however, is not vulnerable in Ruby since it does not use version which includes JSON into stdlib.

This issue affects the version of JSON(embedded in pcs) as shipped with Red Hat Gluster Storage 3. However, the vulnerable method calls are currently not used by the product and hence this issue has been rated as having a security impact of Low.

Red Hat's mitigation

To mitigate this vulnerability, do not supply untrusted user input and/or untrusted strings to the following method calls or utilize code libraries which do so:

```

JSON(user_input)

JSON[user_input, nil]

JSON.parse(user_input, nil)

JSON::Parser.new(user_input).parse

```

Also note that JSON.load() should never be given input from unknown sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.5-8040020200923213910.522a0ee4Fixed 2021-06-29RHSA-2021:2587
Red Hat Enterprise Linux 8ruby:2.6-8040020210430142949.522a0ee4Fixed 2021-06-29RHSA-2021:2588
Red Hat Enterprise Linux 8pcs-0:0.10.4-6.el8_2.1Fixed 2020-06-10RHSA-2020:2462
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutionspcs-0:0.10.1-4.el8_0.5Fixed 2020-06-10RHSA-2020:2473
Red Hat Enterprise Linux 8.1 Extended Update Supportpcs-0:0.10.2-4.el8_1.1Fixed 2020-06-23RHSA-2020:2670
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsruby:2.6-8010020220201152941.c27ad7f8Fixed 2022-02-21RHSA-2022:0581
Red Hat Enterprise Linux 8.2 Extended Update Supportruby:2.6-8020020220201131207.4cda2c84Fixed 2022-02-21RHSA-2022:0582
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby25-ruby-0:2.5.9-9.el7Fixed 2021-05-26RHSA-2021:2104
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby26-ruby-0:2.6.7-119.el7Fixed 2021-06-03RHSA-2021:2230
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-ruby25-ruby-0:2.5.9-9.el7Fixed 2021-05-26RHSA-2021:2104
CloudForms Management Engine 5rubyNot affected
CloudForms Management Engine 5rubygem-jsonAffected
Red Hat 3scale API Management Platform 2systemFix deferred
Red Hat Enterprise Linux 5rubyNot affected
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 7pcsNot affected
Red Hat Enterprise Linux 7rubyWill not fix
Red Hat Fuse 7jrubyNot affected
Red Hat JBoss A-MQ 6jruby-3977Not affected
Red Hat JBoss A-MQ 6jruby-4198Not affected
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-10663.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON