cve.bz

CVE-2020-8165 Deserialization of Untrusted Data

9.8 criticalExploit referenceEPSS 46%Fix available

Critical (9.8). EPSS 46% estimated probability of exploitation activity in the next 30 days. Fixed in activesupport 5.2.4.3, 6.0.3.1.

On this page
A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attacker to unmarshal user-provided objects in MemCacheStore and RedisCacheStore potentially resulting in an RCE.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
46% (unchanged from 46% a week ago; 46% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
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-8165 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8165?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8165?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-8165 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
rubyonrails:railsbefore 5.2.4.3
rubyonrails:railsfrom 6.0.0 before 6.0.3.1
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
opensuse:leap15.1
opensuse:leap15.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2p68-f74v-9wc6RubyGemsactivesupport>=5.0.0 <5.2.4.35.2.4.3
GHSA-2p68-f74v-9wc6RubyGemsactivesupport>=6.0.0 <6.0.3.16.0.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8rails2:4.1.8-1+deb8u7DLA-2251-1
Debian9rails2:4.2.7.1-1+deb9u3DLA-2282-1
Debian10rails2:5.2.2.1+dfsg-1+deb10u2DSA-4766-1
Debian12, 13, 14rails2:5.2.4.3+dfsg-1DEBIAN-CVE-2020-8165
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSrailsno fix listedUBUNTU-CVE-2020-8165
Red Hatsatellite:6.9::el7createrepo_c, createrepo_c-libs, python3-createrepo_c and 1 more0:0.17.1-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7keycloak-httpd-client-install, python2-keycloak-httpd-client-install0:1.2.2-2.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7libcomps, python3-libcomps, libcomps-debuginfo0:0.1.15-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7libsolv, python2-solv, python3-solv and 1 more0:0.7.12-2.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7pcp-mmvstatsd0:0.4-2.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7pulp-katello, tfm-rubygem-pulp_certguard_client0:1.0.3-1.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7pulpcore-selinux0:1.2.3-2.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7puppet-foreman_scap_client, tfm-rubygem-apipie-bindings0:0.4.0-1.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7python-aiofiles, python3-aiofiles, python-defusedxml and 1 more0:0.6.0-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-backoff, python3-backoff0:1.10.0-3.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-cffi, python3-cffi, python-cffi-debuginfo0:1.14.3-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-django-lifecycle, python3-django-lifecycle0:0.8.0-1.el7pcRHSA-2021:1313
188 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2rubygem-activesupport-5_15.1.4-3.3.1SUSE-SU-2020:2899-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morermt-server2.6.5-3.34.1SUSE-SU-2020:3147-1
SUSELinux Enterprise Module for Public Cloud 15 SP1, Linux Enterprise Module for Server Applications 15 SP1rmt-server2.6.5-3.18.1SUSE-SU-2020:3160-1
SUSELinux Enterprise Module for Public Cloud 15 SP2, Linux Enterprise Module for Server Applications 15 SP2rmt-server2.6.5-3.3.1SUSE-SU-2020:3036-1
SUSEOpenStack Cloud 7, OpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9rubygem-activesupport-4_24.2.9-7.9.1SUSE-SU-2020:2929-1
openSUSELeap 15.1rmt-server2.6.5-lp151.2.18.2openSUSE-SU-2020:2000-1
openSUSELeap 15.1rubygem-activesupport-5_15.1.4-lp151.3.3.1openSUSE-SU-2020:1677-1
openSUSELeap 15.2rmt-server2.6.5-lp152.2.3.1openSUSE-SU-2020:1993-1
openSUSELeap 15.2rubygem-activesupport-5_15.1.4-lp152.4.3.1openSUSE-SU-2020:1679-1
openSUSETumbleweedrmt-server2.6.13-1.1openSUSE-SU-2024:10589-1
openSUSETumbleweedrubygem-activesupport-6.06.0.4.4-1.1openSUSE-SU-2024:11828-1

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the version of rubygem-activesupport as shipped with Red Hat Gluster Storage 3. However, the 'raw' option is not used by the product when storing untrusted user input and hence this issue has been rated as having a security impact of Low.

Red Hat Satellite ship affected RubyGem ActiveSupport and use RedisCacheStore, however, unmarshalling of user-provided objects is handled well in product code hence it is not vulnerable to the flaw. We may update the Ruby on Rails and rails-core dependency in a future release.

in OpenShift Container Platform 3.11, rubygem-activesupport is shipped, and it's included in the logging-fluentd container for use by rubygem-kubeclient [1]. The kubeclient gem does NOT make use of the vulnerable class, its only included for the inflector part of activesupport.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.

ProductPackageStateAdvisory
Red Hat Satellite 6.9 for RHEL 7ansible-collection-redhat-satellite-0:2.0.1-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7ansiblerole-foreman_scap_client-0:0.1.0-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7ansiblerole-insights-client-0:1.7.1-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7ansiblerole-satellite-receptor-installer-0:0.6.13-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7ansible-runner-0:1.4.6-1.el7arFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7candlepin-0:3.1.26-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7createrepo_c-0:0.17.1-1.el7pcFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-0:2.3.1.20-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-bootloaders-redhat-0:202005201200-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-discovery-image-0:3.7.4-2Fixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-discovery-image-service-0:1.0.0-4.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-installer-1:2.3.1.10-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-proxy-0:2.3.1-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7foreman-selinux-0:2.3.1-1.el7satFixed 2021-04-21RHSA-2021:1313
CloudForms Management Engine 5cfme-amazon-smartstateNot affected
CloudForms Management Engine 5cfme-gemsetWill not fix
Red Hat 3scale API Management Platform 2systemAffected
Red Hat OpenShift Container Platform 3.11rubygem-activesupportFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-logging-fluentdNot affected
Red Hat Storage 3rubygem-activesupportFix deferred
449 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-8165.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON