CVE-2026-13540
MediumCVSS 6.3Exploitation Probability (EPSS)
Low risk14th percentile - higher than 14% of all known CVEs
Summary
A server-side request forgery (SSRF) vulnerability has been discovered in GitBucket up to version 4.46.1 in the Git.cloneRepository.setURI function. Manipulating the url argument in RepositoryCreationService.scala allows remote exploitation. The exploit is public, and applying a patch is recommended.
Risk Assessment
An attacker can exploit this vulnerability to make the GitBucket server send requests to internal network resources, potentially leading to data leakage, privilege escalation, or further compromise of the infrastructure.
Recommendation
Immediately apply the patch identified as 487a9b980f56aa73b6a044b1e86a92eed5043215 or upgrade GitBucket to a version newer than 4.46.1.
Other vulnerabilities in GitBucket
See all- CVE-2026-145818Medium
GitBucket through 4.48.0 contains an incorrect authorization vulnerability in ApiRepositoryWebhookControllerBase that allows non-owner write collaborators to create, modify, and delete webhooks because routes use writableUsersOnly instead of ownerOnly. Attackers can change webhook target URLs, events, and secrets via the hooks API to redirect event deliveries, break CI integrations, or trigger server-side requests to internal addresses.
- CVE-2018-25332Critical
GitBucket version 4.23.1 contains an unauthenticated remote code execution vulnerability that allows attackers to execute arbitrary commands. This is exploited through weak secret token generation and insecure file upload functionality.
- CVE-2026-144685Medium
GitBucket through 4.48.0 contains a stored cross-site scripting vulnerability that allows authenticated users to execute JavaScript by uploading XHTML or XML attachments served inline. Attackers can attach an XHTML file to an issue or comment, served via the _attached route as application/xhtml+xml, to run script in a victim's session and perform API actions as that user, including administrators.
- CVE-2026-129863Medium
GitBucket through 4.48.0 contains an incorrect authorization vulnerability in the PATCH pulls and PUT pulls merge REST API endpoints, which only check read access. Authenticated users can edit, close, reopen, retitle, retarget, or merge other users' pull requests without write permission.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

