Improper Authorization Affecting org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source package, versions [,871.v28d74e8b_4226)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-ORGJENKINSCIPLUGINS-6405825
  • published 7 Mar 2024
  • disclosed 7 Mar 2024
  • credit Anders Hammar

How to fix?

Upgrade org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source to version 871.v28d74e8b_4226 or higher.

Overview

org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source is a package that allows to discover and build Bitbucket Cloud and Bitbucket Server pull requests and branches and send status notifications with the build result.

Affected versions of this package are vulnerable to Improper Authorization such that Multibranch Pipelines with Bitbucket branch source can be configured to discover pull requests from forks. The trust policy is set to "Forks in the same account" by default.

This trust policy allows changes to Jenkinsfiles from users without write access to the project when using Bitbucket Server. This allows attackers able to submit pull requests from forks to change the Pipeline behavior.

Note:

Pipelines using Bitbucket Cloud are unaffected by this issue.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

Red Hat

6.3 medium