Skip to main content

GitBucket CVE-2026-129863

| EUVDEUVD-2026-126457 HIGH
Incorrect Authorization (CWE-863)
2026-11-16 VulnCheck GHSA-jv75-83vr-pf2w
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as read-only or guest user
  2. Exploit
    Send PUT /pulls/:id/merge API request
  3. Execution
    Endpoint enforces only read access
  4. Impact
    Unreviewed 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GitBucket 0 ≤4.48.0

Affected Packages

euvd gitbucket no fix

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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Low
niche self-hosted Scala Git platform, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy