Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as read-only or guest user
-
ExploitSend PUT /pulls/:id/merge API request
-
ExecutionEndpoint enforces only read access
-
ImpactUnreviewed pull request merged into base branch
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated GitBucket account (PR:L) with at least read access to the target repository - specifically any authenticated user against a public repository, or a guest (read-only) collaborator against a private repository. The attacker must reach the REST API endpoints PATCH /api/v3/repos/:owner/:repository/pulls/:id and/or PUT /api/v3/repos/:owner/:repository/pulls/:id/merge, which in versions through 4.48.0 enforced only read access (referrersOnly) rather than write access. No user interaction, no admin rights, and no write permission are needed. Limiting factors that reduce realistic risk: the attacker must already possess a credentialed account on the instance, so purely anonymous/unauthenticated exploitation is not possible; the target repository must be public or the attacker must be an invited private-repo guest; and instances where all accounts already have write access gain nothing from the flaw. |
| Impact | The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N, score 7.1) frames this accurately: network-reachable, low attack complexity, requires an authenticated low-privilege account (PR:L), no user interaction, and a HIGH integrity impact with no confidentiality or availability impact - consistent with a CWE-863 incorrect-authorization flaw that lets a user without write permission alter and merge pull requests. The key signals do not all point the same way: there is no CISA KEV listing and no EPSS probability supplied in the input, so widespread opportunistic exploitation is not evidenced; however, a vendor patch, a public issue, a detailed third-party technical writeup (hackmd), and the fixing diff with a regression test are all public, which materially lowers the barrier to weaponization even though no confirmed working exploit is named. The vuln.today decision label is 'this_week', which is an elevated-but-not-emergency urgency consistent with a serious integrity flaw that still requires an authenticated foothold rather than being remote-unauthenticated. This is a genuine priority - not merely a high-number-low-real-risk item - for any GitBucket instance that grants accounts to semi-trusted users or hosts public repositories, because the integrity impact (unreviewed code merged into a protected base branch) can seed downstream build/supply-chain compromise; it is lower priority for closed instances where every account already has write access. Missing data to note explicitly: no EPSS score and no KEV status were provided, so real-world exploitation frequency cannot be quantified from the input. |
| Exploit ScenarioDerived | An attacker who holds any authenticated GitBucket account with only read access to a target repository - for example an ordinary user against a public repo, or a guest collaborator on a private repo - calls the PATCH pulls or PUT pulls-merge REST API directly. Because the endpoints only enforced read access (referrersOnly), the attacker can retitle, retarget, close/reopen, or outright merge another user's pull request into the base branch, injecting unreviewed code without write permission. No confirmed working exploit is published, but the public patch diff, regression test, and technical writeup make the one-request API call straightforward to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
GitBucket through 4.48.0 enforces only read access on two of its GitHub-compatible REST API routes - PATCH /api/v3/repos/:owner/:repository/pulls/:id and PUT /api/v3/repos/:owner/:repository/pulls/:id/merge - so any user who can merely see a repository can retitle, retarget, close, reopen, or merge other users' pull requests into the base branch. The flaw is reachable over the network with low attack complexity and no user interaction, but requires a valid authenticated account (CVSS 4.0 PR:L) that is either any account on a public repository or an invited read-only guest collaborator on a private one; integrity impact is High while confidentiality and availability are unaffected (7.1). No CISA KEV entry or confirmed working exploit code was identified at time of analysis, though a public technical writeup of the missing write check exists; a vendor fix is available upstream as PR #4181 / commit 876c852, with no tagged patched release independently confirmed.
RemediationAI
Apply the upstream fix rather than relying on configuration: the correction is upstream pull request https://github.com/gitbucket/gitbucket/pull/4181, merged as commit 876c8524967356dfea4a0508c4e1444ad8c80832, which replaces referrersOnly with writableUsersOnly on both the pull-request edit and merge API routes and adds a regression test expecting HTTP 401 for read-only callers; vendor status is listed as patch available, but no tagged patched release version was confirmed in the supplied data, so verify the release notes at https://github.com/gitbucket/gitbucket/issues/4179 before assuming a published build contains the change, and build from the fixed commit or later if it does not. Where an immediate upgrade is not possible, the practical compensating controls carry real trade-offs: block PATCH on /api/v3/repos/*/pulls/* and PUT on /api/v3/repos/*/pulls/*/merge at the reverse proxy, accepting that this breaks legitimate pull-request editing and merging through both the API and any UI path that calls it; audit and prune guest (read-only) collaborators on private repositories and restrict who may hold accounts on instances hosting sensitive public repositories, since the vulnerability requires only a credentialed read-level account; and review repository history and pull-request state (titles, base branches, unexpected merges, forced changes) for signs of tampering on any instance that ran an affected version with untrusted or guest users. Updating is the only complete fix - the proxy blocking and collaborator restrictions reduce exposure but leave the vulnerable code path in place for permitted users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitBucket is a self-hosted, Scala-based Git platform that exposes a GitHub-compatible REST API v3, with pull request handling implemented in ApiPullRequestControllerBase.scala. The root cause is CWE-863 (incorrect authorization): both the pull-request edit route and the merge route were wrapped in the referrersOnly authorization helper, which only verifies that the caller can read the target repository, instead of writableUsersOnly, which verifies write permission. The patch (pull request #4181, commit 876c8524967356dfea4a0508c4e1444ad8c80832) swaps the helper on both routes and adds an integration test asserting that a user with only read rights receives HTTP 401 from both endpoints. Because the affected surface is the API rather than the web UI's own controller logic, the weakness is present in the API layer regardless of how the repository was created, and it is only neutralized when the caller's account actually holds write permission - the unchanged read-only check is what makes read-only collaborators and unrelated users on public repositories dangerous. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N) corroborates that exploitation is a straightforward authenticated API call producing high integrity impact, not a memory-safety or race condition; the trigger is ordinary authenticated request handling and no precondition beyond read access is described in the sources.
Know when Gitbucket gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Network REST API, low complexity, requires an authenticated read-only account so PR:L; no user interaction; impact is unauthorized modification/merge of pull requests, giving I:H with C:N and A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
GitBucket through 4.48.0 contains an incorrect authorization vulnerability that allows authenticated users to edit and merge other users' pull requests because the PATCH pulls and PUT pulls merge REST API endpoints only check read access. Attackers can close, reopen, retitle, retarget, or merge pull requests into the base branch without write permission on public repositories or as private-repository guest collaborators.
Executive ViewAI
CVE-2026-129863 is a high-severity authorization flaw in GitBucket (up to version 4.48.0) that allows any user with read-only access to a repository to modify or merge pull requests, directly compromising source code integrity. This undermines the trustworthiness of the code review and merge process, potentially enabling unauthorized changes to critical codebases. Leadership should prioritize remediation because affected teams rely on GitBucket for secure collaboration, and exploitation could lead to supply chain risks or intellectual property damage.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
GitBucket 4.23.1 contains an unauthenticated remote code execution vulnerability that allows attackers to execute arbitr
Jenkins GitBucket Plugin 0.8 and earlier does not sanitize Gitbucket URLs on build views, resulting in a stored cross-si
Server-side request forgery in GitBucket up to version 4.46.1 allows authenticated users to coerce the application serve
EUVD-2026-126457
GHSA-jv75-83vr-pf2w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB