CVE Vulnerabilities

CVE-2021-21348

Uncontrolled Resource Consumption

Published: Mar 23, 2021 | Modified: Nov 07, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
7.8 HIGH
AV:N/AC:L/Au:N/C:N/I:N/A:C
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
LOW

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to occupy a thread that consumes maximum CPU time and will never return. No user is affected, who followed the recommendation to setup XStreams security framework with a whitelist limited to the minimal required types. If you rely on XStreams default blacklist of the Security Framework, you will have to use at least version 1.4.16.

Weakness

The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Affected Software

Name Vendor Start Version End Version
Xstream Xstream_project * 1.4.16 (excluding)
Red Hat Data Grid 8.2.0 RedHat xstream *
Red Hat Fuse 7.10 RedHat xstream *
Red Hat Integration RedHat xstream *
Red Hat Integration Camel Quarkus RedHat xstream *
RHDM 7.11.0 RedHat xstream *
RHPAM 7.11.0 RedHat xstream *
Libxstream-java Ubuntu bionic *
Libxstream-java Ubuntu devel *
Libxstream-java Ubuntu esm-apps/xenial *
Libxstream-java Ubuntu focal *
Libxstream-java Ubuntu groovy *
Libxstream-java Ubuntu hirsute *
Libxstream-java Ubuntu impish *
Libxstream-java Ubuntu jammy *
Libxstream-java Ubuntu kinetic *
Libxstream-java Ubuntu lunar *
Libxstream-java Ubuntu mantic *
Libxstream-java Ubuntu noble *
Libxstream-java Ubuntu oracular *
Libxstream-java Ubuntu trusty *
Libxstream-java Ubuntu trusty/esm *
Libxstream-java Ubuntu xenial *

Extended Description

Limited resources include memory, file system storage, database connection pool entries, and CPU. If an attacker can trigger the allocation of these limited resources, but the number or size of the resources is not controlled, then the attacker could cause a denial of service that consumes all available resources. This would prevent valid users from accessing the product, and it could potentially have an impact on the surrounding environment. For example, a memory exhaustion attack against an application could slow down the application as well as its host operating system. There are at least three distinct scenarios which can commonly lead to resource exhaustion:

Resource exhaustion problems are often result due to an incorrect implementation of the following situations:

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References