CVE-2021-21654 Missing Authorization in Jenkins P4 plugin
Attackers with read permissions can connect to arbitrary Perforce servers due to missing permission checks in the Jenkins P4 Plugin.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-21654?
CVE-2021-21654 is a medium-severity missing authorization vulnerability in Jenkins P4 Plugin, published on 11 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Jenkins P4 Plugin 1.11.4 and earlier does not perform permission checks in multiple HTTP endpoints, allowing attackers with Overall/Read permission to connect to an attacker-specified Perforce server using attacker-specified username and password.
Which versions are affected by CVE-2021-21654?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:p4. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:p4 Maven | All versions | 1.11.5 |
org.jenkins-ci.plugins:p4 Maven | All versions | 1.11.5 |
Products include Jenkins P4.
How do I fix CVE-2021-21654?
Upgrade org.jenkins-ci.plugins:p4 to 1.11.5 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-21654 being exploited?
There is no known exploitation of CVE-2021-21654 in the wild and no public exploit code.
Other vulnerabilities in Jenkins P4 Plugin
Sources
Also known as GHSA-h6qv-f5gf-8gcf.