CVE-2021-21639
jenkins: lack of type validation in agent related REST API
Overview
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.
Source: OX vulnerability database
Severity
4.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | jenkins | <2.286.1 | 2.286.1 |
| Maven | org.jenkins-ci.main:jenkins-core | <2.277.2>=2.278, <2.287 | 2.277.22.287 |
Open a package to see all its vulnerabilities.
Operating systems · 69 fixes
Red Hat 2 releases · 54 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | jenkins | affected | — |
| 7 | runc | 0:1.0.0-95.rhaos4.8.gitcd80260.el7 | RHSA-2021:1551 |
| 7 | runc | 0:1.0.0-98.rhaos4.8.gitcd80260.el7 | RHSA-2021:2437 |
| 7 | cri-tools | 0:1.20.0-2.el7 | RHSA-2021:1551 |
| 7 | cri-tools | 0:1.21.0-2.el7 | RHSA-2021:2437 |
| 7 | cri-o | 0:1.21.2-5.rhaos4.8.gitb27d974.el7 | RHSA-2021:2437 |
59 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | jenkins | 2.287-r0 |
| 3.23 | jenkins | 2.287-r0 |
| 3.24 | jenkins | 2.287-r0 |
| edge | jenkins | 2.287-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2021/04/07/2
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-21639
- github.com https://github.com/jenkinsci/jenkins
- github.com https://github.com/jenkinsci/jenkins/commit/84210baed0c866bdee3e59271f98a767a14a5509
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-21639
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-21639
- www.jenkins.io https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1721
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.