Skip to content
Heist/ feed
Back to feed
Low

GitBucket RepositoryCreationService.scala Git.cloneRepository.setURI server-side request forgery

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-13540
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:38 UTC · Revision 1

Source evidence

GitBucket RepositoryCreationService.scala Git.cloneRepository.setURI server-side request forgery

core-osv · Original source

Published 29 Jun 2026, 05:45 UTC

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.

osv:CVE-2026-13540
Complete source record
{
  "id": "1963e506e60cc8c456098a5c9e477fd05561ad59c73f8f3083974e10c529ff44",
  "url": "https://osv.dev/vulnerability/CVE-2026-13540",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "GitBucket RepositoryCreationService.scala Git.cloneRepository.setURI server-side request forgery",
    "summary": "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.",
    "evidence": "osv:CVE-2026-13540",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-13540",
      "aliases": [
        "CVE-2026-13540"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gitbucket/gitbucket",
              "type": "GIT",
              "events": [
                {
                  "introduced": "90b9c17d6eb0a5119889af3b0f4a17c5bcb86d5f"
                },
                {
                  "fixed": "487a9b980f56aa73b6a044b1e86a92eed5043215"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.46.0"
                      },
                      {
                        "last_affected": "4.46.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.46.1"
                      },
                      {
                        "last_affected": "4.46.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "487a9b980f56aa73b6a044b1e86a92eed5043215"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.46.0",
            "4.46.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-13540.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.431417794Z",
      "provider": "osv",
      "references": [
        "https://github.com/gitbucket/gitbucket/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13540.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-13540",
        "https://vuldb.com/cve/CVE-2026-13540",
        "https://vuldb.com/submit/836108",
        "https://vuldb.com/vuln/374548",
        "https://github.com/gitbucket/gitbucket/issues/4044",
        "https://vuldb.com/vuln/374548/cti",
        "https://github.com/gitbucket/gitbucket/commit/487a9b980f56aa73b6a044b1e86a92eed5043215",
        "https://github.com/gitbucket/gitbucket/pull/4056"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "VulDB",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13540.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-13540",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508056,
  "published_at": "2026-06-29T05:45:07.911+00:00"
}