Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven

GHSA-w2mh-6xj5-f77f is a medium-severity (CVSS 4.3) CWE-862 vulnerability in org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source. O3 Security confirms whether GHSA-w2mh-6xj5-f77f is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Incorrect Permission Assignment for Critical Resource in Jenkins Bitbucket Branch Source Plugin

Also known asCVE-2022-20618
Published
Jan 13, 2022
Updated
Feb 16, 2024
Affected
4 pkgs
Patched
4 / 4
Exploits
None indexed

Real-World Exposure

4 pkgs affected
org.jenkins-ci.plugins:cloudbees-bitbucket-branch-sourceorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-sourceorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-sourceorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-source

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

Jenkins Bitbucket Branch Source Plugin prior to 746.v350d2781c184, 725.vd9f8be0fa250, 2.9.11.2, and 2.9.7.2 does not perform permission checks in several HTTP endpoints.

This allows attackers with Overall/Read access to enumerate credentials IDs of credentials stored in Jenkins. Those can be used as part of an attack to capture the credentials using another vulnerability.

An enumeration of credentials IDs in Bitbucket Branch Source Plugin 746.v350d2781c184, 725.vd9f8be0fa250, 2.9.11.2, and 2.9.7.2 requires the appropriate permissions.

Affected Packages

4 total 4 fixed
EcosystemPackageVulnerable rangeFix
Mavenorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-source726.v7e6f53de133c&&< 746.v350d2781c184746.v350d2781c184
Mavenorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-source720.vbe985dd73d66&&< 725.vd9f8be0fa250725.vd9f8be0fa250
Mavenorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-source2.9.8&&< 2.9.11.22.9.11.2
Mavenorg.jenkins-ci.plugins:cloudbees-bitbucket-branch-sourceall versions2.9.7.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update org.jenkins-ci.plugins:cloudbees-bitbucket-branch-source to 746.v350d2781c184 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-w2mh-6xj5-f77f is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-w2mh-6xj5-f77f is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-w2mh-6xj5-f77f. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

Jenkins Bitbucket Branch Source Plugin prior to 746.v350d2781c184, 725.vd9f8be0fa250, 2.9.11.2, and 2.9.7.2 does not perform permission checks in several HTTP endpoints. This allows attackers with Overall/Read access to enumerate credentials IDs of credentials stored in Jenkins. Those can be used as part of an attack to capture the credentials using another vulnerability. An enumeration of credentials IDs in Bitbucket Branch Source Plugin 746.v350d2781c184, 725.vd9f8be0fa250, 2.9.11.2, and 2.9.7.2 requires the appropriate permissions.
O3 Security · Impact-Aware SCA

Is GHSA-w2mh-6xj5-f77f in your dependencies?

O3 detects GHSA-w2mh-6xj5-f77f across Maven dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.