CVE-2021-21639
JSON

4.3medium

Lack of type validation in agent related REST API in Jenkins

Severity
4.3medium CVSS:3.1 by NVD
Exploit likelihood
2.73% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-pvwx-3jx5-24r2BIT-JENKINS-2021-21639

Description

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node, allowing attackers with Computer/Configure permission to replace a node with one of a different type.

Affected

Product or packageVersionsReported by
Jenkins project Jenkinsfrom unspecified up to 2.286, from unspecified up to LTS 2.277.1CVE List
org.jenkins-ci.main:jenkins-core (Maven)before 2.277.2, from 2.278 before 2.287GitHub Advisory Database
jenkins jenkinsup to 2.277.1, up to 2.286NVD
jenkins (Bitnami)before 2.286.1Bitnami Vulnerability Database

All scores

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

Classification

What each source says

CVE List

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node, allowing attackers with Computer/Configure permission to replace a node with one of a different type.

GitHub Advisory Database

Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the config.xml REST API endpoint of a node.

This allows attackers with Computer/Configure permission to replace a node with one of a different type.

Jenkins 2.287, LTS 2.277.2 validates the type of object created and rejects objects of unexpected types.

NVD (es)

Jenkins versiones 2.286 y anteriores, LTS versiones 2.277.1 y anteriores, no comprueba el tipo de objeto diseñado después de cargar los datos enviados al endpoint de la API REST "config.xml" de un nodo, permitiendo a atacantes con permiso Computer/Configure reemplazar un nodo con uno de un tipo diferente

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21639 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pvwx-3jx5-24r2 changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21639 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-JENKINS-2021-21639 changed 2026-09-08Apache-2.0