CVE-2024-28152 Jenkins Bitbucket Branch Source Plugin has incorrect trust policy behavior for pull requests
Attackers without write access can modify Jenkinsfiles via fork trust policy, leading to code execution in Jenkins.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-28152?
CVE-2024-28152 is a medium-severity missing authorization vulnerability in Jenkins Bitbucket Branch Source Plugin, published on 6 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In Jenkins Bitbucket Branch Source Plugin 866.vdea_7dcd3008e and earlier, except 848.850.v6a_a_2a_234a_c81, when discovering pull requests from forks, the trust policy "Forks in the same account" allows changes to Jenkinsfiles from users without write access to the project when using Bitbucket Server.
Weakness: CWE-281
Which versions are affected by CVE-2024-28152?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source Maven | All versions | 871.v28d74e8b_4226 |
org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source Maven | All versions | 871.v28d74e8b_4226 |
Products include Jenkins Bitbucket Branch Source.
How do I fix CVE-2024-28152?
Upgrade org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source to 871.v28d74e8b_4226 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-28152 being exploited?
There is no known exploitation of CVE-2024-28152 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Bitbucket Branch Source Plugin
Sources
Also known as GHSA-m4rm-x2rr-357w.