CVE-2021-21604
JSON

8.0high

Improper handling of REST API XML deserialization errors in Jenkins

Severity
8.0high CVSS:3.1 by NVD
Exploit likelihood
1.70% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-qv6f-rcv6-6q3xBIT-JENKINS-2021-21604

Description

Jenkins 2.274 and earlier, LTS 2.263.1 and earlier allows attackers with permission to create or configure various objects to inject crafted content into Old Data Monitor that results in the instantiation of potentially unsafe objects once discarded by an administrator.

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

GitHub8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

Jenkins 2.274 and earlier, LTS 2.263.1 and earlier allows attackers with permission to create or configure various objects to inject crafted content into Old Data Monitor that results in the instantiation of potentially unsafe objects once discarded by an administrator.

GitHub Advisory Database

Jenkins provides XML REST APIs to configure views, jobs, and other items. When deserialization fails because of invalid data, Jenkins 2.274 and earlier, LTS 2.263.1 and earlier stores invalid object references created through these endpoints in the Old Data Monitor. If an administrator discards the old data, some erroneous data submitted to these endpoints may be persisted.

This allows attackers with View/Create, Job/Create, Agent/Create, or their respective */Configure permissions to inject crafted content into Old Data Monitor that results in the instantiation of potentially unsafe objects when discarded by an administrator.\n\nJenkins 2.275, LTS 2.263.2 does not record submissions from users in Old Data Monitor anymore.

In case of problems, the Java system properties hudson.util.RobustReflectionConverter.recordFailuresForAdmins and hudson.util.RobustReflectionConverter.recordFailuresForAllAuthentications can be set to true to record configuration data submissions from administrators or all users, partially or completely disabling this fix.

NVD (es)

Jenkins versiones 2.274 y anteriores, LTS versiones 2.263.1 y anteriores, permite a atacantes con permiso para crear o configurar varios objetos para inyectar contenido diseñado en Old Data Monitor que resulta en la instanciación de objetos potencialmente no seguros una vez que son descartados por un administrador.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21604 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qv6f-rcv6-6q3x changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21604 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21604 changed 2026-09-08Apache-2.0