Skip to main content

GitBucket CVE-2026-13540

| EUVDEUVD-2026-40038 LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-29 VulDB GHSA-29f2-r2fr-hjv6
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to GitBucket instance
  2. Delivery
    Navigate to Create Repository
  3. Exploit
    Select COPY/clone init option
  4. Execution
    Submit crafted internal URL as source
  5. Persist
    Server issues HTTP request to internal host
  6. Impact
    Probe internal services or cloud metadata endpoint

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

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 user account on the target GitBucket instance (CVSS PR:L confirmed). The attacker must have permission to create repositories, which is a standard capability for normal user accounts. The vulnerable code path is triggered specifically by selecting the 'COPY' (clone from existing repository) initialization option during repository creation - the default 'empty repository' and 'initialize with README' options do not invoke the affected code. Exploitation is limited by: (1) the requirement for a valid credential, narrowing the attacker pool to insiders or credential holders; (2) the absence of a direct response-body read mechanism in the git clone protocol - information leakage depends on error message reflection or timing side-channels; (3) instances where administrator-level 'Block private address' outbound request controls are already enabled for webhooks may partially mitigate this path, though the pre-patch code did not apply this control to cloning.

Impact

The CVSS 4.0 base score of 5.3 (Medium) accurately reflects the constrained impact: PR:L requires an authenticated user account, and the VC/VI/VA metrics are all Low. No EPSS data was included in this intelligence package, so exploitation probability cannot be quantified numerically. A public exploit/POC exists (GitHub issue #4044), which lowers the attacker skill threshold, but the PR:L requirement limits the population of viable attackers to those with valid credentials. CISA KEV is absent, consistent with targeted rather than mass exploitation. The primary real-world risk is internal network reconnaissance and interaction with cloud metadata services (e.g., AWS IMDSv1 at 169.254.169.254) or internal APIs that extend implicit trust to the GitBucket server IP. Instances with open self-registration or many authenticated users face meaningfully higher exposure. No conflicting signals between CVSS vector and description - the network attack vector and authenticated requirement are internally consistent.

Exploit ScenarioDerived

An authenticated GitBucket user navigates to the 'Create Repository' page and selects the 'Clone from existing repository' initialization option, supplying a crafted source URL such as http://169.254.169.254/latest/meta-data/ (AWS IMDSv1 endpoint). GitBucket's server-side JGit clone routine issues an HTTP GET to that internal address on behalf of the attacker, and any error messages or partial responses may leak internal service data. A public exploit demonstrating this technique is referenced at GitHub issue #4044.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 29, 2026

Server-side request forgery in GitBucket up to version 4.46.1 allows authenticated users to coerce the application server into issuing HTTP requests to arbitrary internal or private network hosts by supplying a crafted URL to the repository creation "clone from existing repository" feature. The flaw resides in Git.cloneRepository.setURI() within RepositoryCreationService.scala, where user-supplied URL input reaches JGit without validation against private address ranges. A public exploit exists (GitHub issue #4044), though no CISA KEV listing is present - no confirmed active exploitation at time of analysis. An upstream patch is available as commit 487a9b980f56aa73b6a044b1e86a92eed5043215 via PR #4056.

RemediationAI

Apply the upstream patch commit 487a9b980f56aa73b6a044b1e86a92eed5043215 from PR #4056 (https://github.com/gitbucket/gitbucket/pull/4056); a specific released version incorporating this fix is not independently confirmed - verify against the official GitBucket release page. As a compensating control prior to patching, administrators should enable the 'Block private address' outbound request setting in GitBucket's admin panel under System Settings > Outbound requests, and configure an IP whitelist limited to legitimate external clone sources - this setting now covers both webhooks and repository cloning after the patch, but may already exist in pre-patch versions for webhooks only. Disabling the 'Create repository by cloning' feature entirely via access control policy eliminates the attack surface with no impact on standard git operations. Network-level egress filtering on the GitBucket host to block RFC-1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and link-local addresses (169.254.0.0/16) provides defense-in-depth but does not remove the vulnerability.

Affected VersionsENISA

GitBucket 4.46.0
GitBucket 4.46.1

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 Git platform written in Scala, running on the JVM. The affected code path is the 'COPY' initialization option during repository creation, which invokes JGit's Git.cloneRepository.setURI() with a user-controlled url argument from RepositoryCreationService.scala. CWE-918 (Server-Side Request Forgery) describes the root cause exactly: the application acts as a network proxy on behalf of attacker-controlled input with no denylist or allowlist enforcement for private RFC-1918 address space. The CPE string (cpe:2.3:a:n/a:gitbucket:*:*:*:*:*:*:*:*) confirms all GitBucket versions up to and including 4.46.1 are affected. The fix, visible in PR #4056, extends the pre-existing webHook.blockPrivateAddress + IP-range whitelist controls - previously scoped only to outbound webhook requests - to also apply to repository-clone source URLs. The settings UI was simultaneously relabeled from 'Web hook' to 'Outbound requests' to reflect the broader scope of the control.

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 (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.4 MEDIUM

Network-reachable via authenticated account (PR:L); SSRF enables internal service probing (C:L) and potential side-effecting requests to internal APIs (I:L); no direct availability impact.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

2
Severity Changed
Jun 29, 2026 - 07:37 NVD
MEDIUM LOW
CVSS changed
Jun 29, 2026 - 07:37 NVD
5.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A security flaw has been discovered in GitBucket up to 4.46.1. This affects the function Git.cloneRepository.setURI of the file src/main/scala/gitbucket/core/service/RepositoryCreationService.scala. Performing a manipulation of the argument url results in server-side request forgery. The attack is possible to be carried out remotely. The exploit has been released to the public and may be used for attacks. The patch is named 487a9b980f56aa73b6a044b1e86a92eed5043215. To fix this issue, it is recommended to deploy a patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche self-hosted Git alternative, smaller footprint than GitLab or Gitea
Exploit
POC
Public exploit code exists
Social Media
3
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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