CVE Vulnerabilities

CVE-2020-8203

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Published: Jul 15, 2020 | Modified: Jan 21, 2024
CVSS 3.x
7.4
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS 2.x
5.8 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:P
RedHat/V2
RedHat/V3
7.4 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Ubuntu
MEDIUM

Prototype pollution attack when using _.zipObjectDeep in lodash before 4.17.20.

Weakness

The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.

Affected Software

Name Vendor Start Version End Version
Lodash Lodash * 4.17.20 (excluding)
Jaeger-1.17 RedHat distributed-tracing/jaeger-agent-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-all-in-one-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-collector-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-es-index-cleaner-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-es-rollover-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-ingester-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-query-rhel7:1.17.6-1 *
Jaeger-1.17 RedHat distributed-tracing/jaeger-rhel7-operator:1.17.6-1 *
Openshift Service Mesh 1.1 RedHat kiali-0:v1.12.10.redhat2-1.el7 *
OpenShift Service Mesh 1.1 RedHat ior-0:1.1.6-1.el8 *
OpenShift Service Mesh 1.1 RedHat servicemesh-0:1.1.6-1.el8 *
OpenShift Service Mesh 1.1 RedHat servicemesh-cni-0:1.1.6-1.el8 *
OpenShift Service Mesh 1.1 RedHat servicemesh-grafana-0:6.4.3-13.el8 *
OpenShift Service Mesh 1.1 RedHat servicemesh-operator-0:1.1.6-2.el8 *
OpenShift Service Mesh 1.1 RedHat servicemesh-prometheus-0:2.14.0-14.el8 *
Red Hat OpenShift Container Platform 4.6 RedHat openshift4/ose-metering-presto:v4.6.0-202010200139.p0 *
Red Hat Quay 3 RedHat quay/quay-rhel8:v3.6.0-62 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 RedHat cockpit-ovirt-0:0.14.15-1.el8ev *
Red Hat Virtualization Engine 4.4 RedHat ovirt-engine-ui-extensions-0:1.2.3-1.el8ev *
Red Hat Virtualization Engine 4.4 RedHat ovirt-web-ui-0:1.6.4-1.el8ev *
Red Hat Virtualization Engine 4.4 RedHat org.ovirt.engine-root-0:4.4.3.8-1 *
Node-lodash Ubuntu bionic *
Node-lodash Ubuntu eoan *
Node-lodash Ubuntu groovy *
Node-lodash Ubuntu hirsute *
Node-lodash Ubuntu impish *
Node-lodash Ubuntu kinetic *
Node-lodash Ubuntu lunar *
Node-lodash Ubuntu mantic *
Node-lodash Ubuntu trusty *
Node-lodash Ubuntu xenial *

Extended Description

By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the product depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf). This weakness is usually exploited by using a special attribute of objects called proto, constructor or prototype. Such attributes give access to the object prototype. This weakness is often found in code that assigns object attributes based on user input, or merges or clones objects recursively.

Potential Mitigations

References