CVE-2021-21607: Excessive memory allocation in graph URLs leads to denial of service in Jenkins
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.49559%
CWE
Published
5/24/2022
Updated
12/14/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.jenkins-ci.main:jenkins-core | maven | <= 2.263.1 | 2.263.2 |
| org.jenkins-ci.main:jenkins-core | maven | >= 2.264, <= 2.274 | 2.275 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unvalidated graph dimensions in graph rendering. The pre-patch code in Graph.java's render method directly parsed 'w' and 'h' parameters from the request (via Integer.parseInt(w)/Integer.parseInt(h)) and passed them to JFreeChart's createBufferedImage. This allowed attackers to specify arbitrary large values for graph dimensions. The commit added MAX_AREA validation and safeDimension checks, confirming the vulnerability was in the original rendering path that lacked these protections.