CVE-2024-28152:
Jenkins Bitbucket Branch Source Plugin has incorrect trust policy behavior for pull requests
6.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.12503%
CWE
Published
3/6/2024
Updated
11/7/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source | maven | < 871.v28d74e8b4226 | 871.v28d74e8b_4226 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper permission preservation (CWE-281) when handling pull requests from forks. The commit diff shows critical changes in pull request handling logic:- In BitbucketGitSCMBuilder.java
, the withPullRequestRemote()
method determines cloning strategy but previously didn't properly validate()
if the user had write access when using same-account forks.- In BitbucketSCMSource.java
, the initCloneLinks()
method's mirror handling could bypass permission checks. The patched version adds proper validation()
for contributor permissions when using mirrors, indicating these were the vulnerable areas.