CVE-2026-13540: GitBucket RepositoryCreationService.scala Git.cloneRepository.setURI server-side request forgery
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
GitBucketto a version that resolves this vulnerability.Patch 487a9b980f56aa73b6a044b1e86a92eed5043215
Event History
Frequently Asked Questions
What is the severity of CVE-2026-13540?
CVE-2026-13540 has a medium severity score of 6.3.
What impact does CVE-2026-13540 have on GitBucket?
CVE-2026-13540 can lead to server-side request forgery (SSRF) through manipulation of the URL argument in the Git.cloneRepository.setURI function.
How do I fix CVE-2026-13540?
To fix CVE-2026-13540, update GitBucket to the latest version that addresses this vulnerability.
Which versions of GitBucket are affected by CVE-2026-13540?
CVE-2026-13540 affects GitBucket versions up to 4.46.1.
What should I do if I am using an affected version of GitBucket for CVE-2026-13540?
If using an affected version of GitBucket, it is recommended to upgrade to a patched version to mitigate the vulnerability.