Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to GitBucket instance
-
DeliveryNavigate to Create Repository
-
ExploitSelect COPY/clone init option
-
ExecutionSubmit crafted internal URL as source
-
PersistServer issues HTTP request to internal host
-
ImpactProbe 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
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
GitBucket through 4.48.0 enforces only read access on two of its GitHub-compatible REST API routes - PATCH /api/v3/repos
EUVD-2026-40038
GHSA-29f2-r2fr-hjv6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB