GitHub Advisoryadvisory · Maven

GHSA-cxqw-vjcr-gp5g Excessive memory allocation in graph URLs leads to denial of service in Jenkins

MEDIUM Published 2022-05-24 Modified 2022-12-13 Official page ↗
Aliases
CVE-2021-21607
Ecosystem
Maven
Packages
org.jenkins-ci.main:jenkins-core
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-770
Reviewed
2022-06-23

Affected packages

• Maven org.jenkins-ci.main:jenkins-core: < 2.263.2 → fixed in 2.263.2 • Maven org.jenkins-ci.main:jenkins-core: >= 2.264, < 2.275 → fixed in 2.275

Description

Jenkins renders several different graphs for features like agent and label usage statistics, memory usage, or various plugin-provided statistics. Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not limit the graph size provided as query parameters. This allows attackers to request or to have legitimate Jenkins users request crafted URLs that rapidly use all available memory in Jenkins, potentially leading to out of memory errors. Jenkins 2.275, LTS 2.263.2 limits the maximum size of graphs to an area of 10 million pixels. If a larger size is requested, the default size for the graph will be rendered instead. This threshold can be configured by setting the Java system property `hudson.util.Graph.maxArea` to a different number on startup.

Related

Alias · CVE (1)

  • CVE-2021-21607 Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not limit sizes provided as query parameters to graph-rendering URLs, allowing… vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References