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 package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins | from unspecified up to 2.286, from unspecified up to LTS 2.277.1 | CVE List |
| org.jenkins-ci.main:jenkins-core (Maven) | before 2.277.2, from 2.278 before 2.287 | GitHub Advisory Database |
| jenkins jenkins | up to 2.277.1, up to 2.286 | NVD |
| jenkins (Bitnami) | before 2.286.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium 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
| https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1721 | advisory, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/04/07/2 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21639 | advisory, web | |
| https://github.com/jenkinsci/jenkins/commit/84210baed0c866bdee3e59271f98a767a14a5509 | web | |
| https://github.com/jenkinsci/jenkins | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21639 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pvwx-3jx5-24r2 changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21639 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-21639 changed 2026-09-08 | Apache-2.0 |