CVE-2021-21639
MEDIUM 4.3CVSS 3.1Lack of type validation in agent related REST API in Jenkins
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.
- Published
- 7 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- BIT-jenkins-2021-21639GHSA-pvwx-3jx5-24r2
- Sources
- NVDJSONOSV GHSA-pvwx-3jx5-24r2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:* |
<= 2.277.1 | |
| NVD | jenkins | jenkinscpe:2.3:a:jenkins:jenkins:*:*:*:*:-:*:*:* |
<= 2.286 | |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | < 2.277.2 | 2.277.2 |
| OSV | Maven | org.jenkins-ci.main:jenkins-core | >= 2.278, < 2.287 | 2.287 |
References
- http://www.openwall.com/lists/oss-security/2021/04/07/2 · Mailing List, Third Party Advisory, WEB
- https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1721 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21639 · ADVISORY
- https://github.com/jenkinsci/jenkins/commit/84210baed0c866bdee3e59271f98a767a14a5509 · WEB
- https://github.com/jenkinsci/jenkins · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 7 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)