CVE-2021-21607
JSON

6.5medium

Excessive memory allocation in graph URLs leads to denial of service in Jenkins

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
1.46% (higher than 74% of CVEs)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-cxqw-vjcr-gp5gBIT-JENKINS-2021-21607

Description

Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not limit sizes provided as query parameters to graph-rendering URLs, allowing attackers to request crafted URLs that use all available memory in Jenkins, potentially leading to out of memory errors.

Affected

Product or packageVersionsReported by
Jenkins project Jenkinsfrom unspecified up to 2.274, from unspecified up to LTS 2.263.1CVE List
org.jenkins-ci.main:jenkins-core (Maven)before 2.263.2, from 2.264 before 2.275GitHub Advisory Database
jenkins jenkinsup to 2.263.1, up to 2.274NVD
jenkins (Bitnami)before 2.274.1Bitnami Vulnerability Database

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

Jenkins 2.274 and earlier, LTS 2.263.1 and earlier does not limit sizes provided as query parameters to graph-rendering URLs, allowing attackers to request crafted URLs that use all available memory in Jenkins, potentially leading to out of memory errors.

GitHub Advisory Database

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.

NVD (es)

Jenkins versiones 2.274 y anteriores, LTS versiones 2.263.1 y anteriores, no limitan tamaños proporcionados como parámetros de consulta hacia unas URL de representación de gráficos, permitiendo a atacantes pedir URL diseñadas que usan toda la memoria disponible en Jenkins, conllevando potencialmente a unos errores de memoria insuficiente.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21607 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-cxqw-vjcr-gp5g changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21607 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21607 changed 2026-09-08Apache-2.0