VDB
Sign up
MEDIUM6.5

GHSA-cxqw-vjcr-gp5g

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

Quick fix

GHSA-cxqw-vjcr-gp5g — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.263.2</version> for org.jenkins-ci.main:jenkins-core

Details

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](https://www.jenkins.io/doc/book/managing/system-properties/) `hudson.util.Graph.maxArea` to a different number on startup.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 0Fixed in: 2.263.2
Fix# pom.xml: bump <version>2.263.2</version> for org.jenkins-ci.main:jenkins-core
Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 2.264Fixed in: 2.275
Fix# pom.xml: bump <version>2.275</version> for org.jenkins-ci.main:jenkins-core

References